POST
/
v1
/
webhooks
/
{endpointId}
/
events
Create Event
curl --request POST \
  --url https://api.soharhealth.com/v1/webhooks/{endpointId}/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "sandbox.discovery.updated"
}'
{
  "url": "https://www.google.com",
  "endpointId": "ep_2pqPuj665SJeVw8DkU3pkZq1njL",
  "events": [
    "sandbox.discovery.updated"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
event
string<string>
required

The event name for webhook to react

Example:

"sandbox.discovery.updated"

Response

A webhook config

url
string<string>
required

The URL to which webhook would send requests

Example:

"https://www.google.com"

endpointId
string<string>
required

Internal ID of endpoint

Example:

"ep_2pqPuj665SJeVw8DkU3pkZq1njL"

events
string[]
required
Example:
["sandbox.discovery.updated"]