cURL
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" ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The event name for webhook to react
"sandbox.discovery.updated"
A webhook config
The URL to which webhook would send requests
"https://www.google.com"
Internal ID of endpoint
"ep_2pqPuj665SJeVw8DkU3pkZq1njL"
["sandbox.discovery.updated"]