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

Authorizations

Authorization
string
header
required

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

Body

application/json
url
string
required

The URL to which webhook would send requests

Example:

"https://www.google.com"

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:
[]