cURL
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" }
Create a new webhook subscription for receiving event notifications
Partner API key for authentication
Subscription created successfully
The response is of type object.
object