POST
/
agent
/
{agentId}
/
webhook-subscriptions
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

The ID of the agent to create subscriptions for

Body

application/json

Response

201
application/json

Subscriptions created successfully

The response is of type object.