Send API Events to Servicenow using webhook

Hi I am trying to send an API Event using the webhook actions in elasticsearch watcher. However I am getting errors due to unknown fields in EventList. I ca send a API event from elasticsearch server using the CURL, so connection string seems to be fine, but unable to send the same through watcher.

Please point me in the right direction if I am making any mistake here. Action part from my watcher is below.

"actions" : {
"my_webhook" : {
"webhook" : {
"method" : "POST",
"url" : "https://servicenowurl",
"headers" : {
"Content-Type" : "application/yaml",
"x-api-key": "fsfwefasdfwqefdfadsfasfe"
"body" : {
"title":"This is a simulated event just for verifying that we can submit an issue to Event Agnostic API as a new event",
"relatedcihints": "23u32jjsdfsdf"


1 Like

Hi, I have exactly the same issue. Would it be possible that the json used is in json2 format and that the json parser cannot handle the syntax? Or has anybody figured it out?



1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.