Webhooks
Replace webhook subscriptions for an agent
Replaces all existing webhook subscriptions for the agent with the provided event types. Any previously configured subscriptions for this agent are deleted before the new ones are created. To add subscriptions without removing existing ones, retrieve current subscriptions first and include them in the request.
post/agent/{agentId}/webhook-subscriptions
Path parameters
agentIdstring required
The ID of the agent to create subscriptions for
Request body
Example request
{
"eventTypes": [
"post-conversation"
],
"webhookId": "60d0fe4f5311236168a109ca"
}Response
Subscriptions created successfully
Example response
{
"status": true,
"data": "Subscriptions created successfully"
}