v45

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0114775543.6 KB
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

eventTypesstring[] required

Array of event types to subscribe to

webhookIdstring required

The ID of the webhook to subscribe to

Example request

{
  "eventTypes": [
    "post-conversation"
  ],
  "webhookId": "60d0fe4f5311236168a109ca"
}

Response

Subscriptions created successfully

statusboolean
datastring

Success message

Example response

{
  "status": true,
  "data": "Subscriptions created successfully"
}