cURL
curl --request POST \ --url https://atoms-api.smallest.ai/api/v1/agent/{agentId}/webhook-subscriptions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "eventTypes": [ "post-conversation" ], "webhookId": "60d0fe4f5311236168a109ca" } '
{ "status": true, "data": "Subscriptions created successfully" }
Create webhook subscriptions for a specific agent with selected event types
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the agent to create subscriptions for
Array of event types to subscribe to
The type of event to subscribe to
pre-conversation
post-conversation
The ID of the webhook to subscribe to
"60d0fe4f5311236168a109ca"
Subscriptions created successfully
true
Success message
"Subscriptions created successfully"