Webhooks
Replace webhook subscriptions for an agent
Changed onReplaces 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
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/agent/{agentId}/webhook-subscriptions
- AuthHTTP bearer
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"
}Changes
- info
added the non-success response with the status
- info
- info
api tag
Webhooksadded - info
api tag
Agentsremoved - info
added the new
analytics-completedenum value to the request property/
- info