Webhooks
Create a webhook
Changed onCreate a new webhook with subscriptions for specific agents and events.
400 is also returned when the endpoint URL is already registered: "A webhook with this URL has already been registered"
post/webhook
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/webhook
- AuthHTTP bearer
Request body
Example request
{
"endpoint": "https://example.com/webhook",
"description": "Webhook for conversation events",
"events": [
{
"agentId": "60d0fe4f5311236168a109ca",
"eventType": "post-conversation"
}
]
}Response
Webhook created successfully
Example response
{
"status": true,
"data": "60d0fe4f5311236168a109ca"
}Changes
- breaking
the request property
//became required - breaking
the request property
//became required
- breaking
- info
added the new
analytics-completedenum value to the request property//
- info