cURL
curl --request POST \ --url https://atoms-api.smallest.ai/api/v1/webhook \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "endpoint": "https://example.com/webhook", "description": "Webhook for conversation events", "events": [ { "agentId": "60d0fe4f5311236168a109ca", "eventType": "post-conversation" } ] }'
{ "status": true, "data": "60d0fe4f5311236168a109ca" }
Create a new webhook with subscriptions for specific agents and events
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Webhook created successfully
The response is of type object.
object