POST
/
webhooks
/
subscriptions
Create Webhook Subscription
curl --request POST \
  --url https://api.chat-dash.com/v1/partner/webhooks/subscriptions \
  --header 'Content-Type: application/json' \
  --header 'x-partner-api-key: <x-partner-api-key>' \
  --data '{
  "organizationId": "<string>",
  "agentId": "<string>",
  "webhookUrl": "<string>",
  "events": [
    "call.started"
  ]
}'
{
  "_id": "<string>",
  "organizationId": "<string>",
  "agentId": "<string>",
  "webhookUrl": "<string>",
  "events": [
    "call.started"
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Headers

x-partner-api-key
string
required

Partner API key for authentication

Body

application/json

Response

200
application/json

Subscription created successfully

The response is of type object.