Documentation Index
Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt
Use this file to discover all available pages before exploring further.
Create Campaign Webhook
Create a webhook subscribed to campaign lifecycle and per-campaign-call events.
Endpoint
POST /api/v1/campaigns/{campaign_id}/webhooks
Path Parameters
Bearer token. Format: Bearer talq_your_environment_token_here
Must be set to application/json
Request Body
Webhook name. Max 255 characters.
Delivery URL. Max 500 characters.
Array of subscribed events. Min 1.
Optional HMAC-SHA256 signing secret. Max 255 characters.
Request timeout in seconds. Range: 5–120. Default: 30.
Retry attempts on failure. Range: 0–10. Default: 3.
Options: POST, PUT, PATCH. Default: POST.
Options: none, bearer, basic, api_key, custom. Default: none.
Array of {key, value} objects.
Per-event template overrides.
When true, also delivers per-call events for calls in this campaign (in addition to campaign-level events).
Examples
curl -X POST "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/webhooks" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Lifecycle Webhook",
"webhook_url": "https://example.com/campaign-events",
"events": ["campaign.started", "campaign.completed", "campaign_call.completed"],
"include_call_events": false
}'
Response
{
"success": true,
"data": {
"id": "webhook-uuid-1",
"campaign_id": "campaign-uuid",
"name": "Lifecycle Webhook",
"events": ["campaign.started", "campaign.completed", "campaign_call.completed"],
"enabled": true,
"include_call_events": false,
"created_at": "2024-01-15T15:00:00Z"
}
}