curl --request POST \
--url https://api.topcalls.ai/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": "call.completed.booked_callback",
"url": "https://hooks.your-app.com/topcalls",
"filters": {
"is_conversion": true,
"phone_number": "+1555%"
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "call.completed.booked_callback",
"url": "<string>",
"filters": {},
"deleted_at": "2023-11-07T05:31:56Z",
"created_by_api_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}Subscribe a URL to receive events from your account. v1 supports
call.completed and disposition-suffixed variants like
call.completed.booked_callback. The lead.status_changed and
campaign.activated / campaign.paused event names are reserved
for future use.
curl --request POST \
--url https://api.topcalls.ai/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": "call.completed.booked_callback",
"url": "https://hooks.your-app.com/topcalls",
"filters": {
"is_conversion": true,
"phone_number": "+1555%"
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "call.completed.booked_callback",
"url": "<string>",
"filters": {},
"deleted_at": "2023-11-07T05:31:56Z",
"created_by_api_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.topcalls.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use Authorization: Bearer tc_live_xxxxx
Optional client-supplied idempotency key. When present, the gateway
caches the response for 24 hours and returns the same response on
retried requests with the same key (account-scoped). Safe for
retries on network blips. Format: 8-255 ASCII characters from
[A-Za-z0-9_-].
8 - 255^[A-Za-z0-9_-]+$"a1b2c3d4-e5f6-7890-abcd-ef0123456789"
^call\.completed(?:\.[a-z0-9_]+)?$|^lead\.status_changed$|^campaign\.(?:activated|paused)$"call.completed.booked_callback"
"https://hooks.your-app.com/topcalls"
Optional equality / array-OR / SQL-LIKE filters applied
to the call-completed payload before fan-out. Top-level
keys are payload field names. The special key
is_conversion is matched against the derived boolean
(true if the call's disposition is in the campaign's
conversion_outcomes list).
Show child attributes
{
"is_conversion": true,
"phone_number": "+1555%"
}