POST
/
v1
/
webhooks
/
{endpointId}
/
events
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
required

The event name for webhook to react

Example:

"sandbox.discovery.updated"

Response

201
application/json
A webhook config
url
string
required

The URL to which webhook would send requests

Example:

"https://www.google.com"

endpointId
string
required

Internal ID of endpoint

Example:

"ep_2pqPuj665SJeVw8DkU3pkZq1njL"

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