curl --request POST \
--url https://app.robocallz.ai/webhooks/post-call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 12345,
"customer_phone": "+1234567890",
"assistant_phone": "+1987654321",
"duration": 125,
"status": "completed",
"extracted_variables": {
"status": true,
"summary": "Customer interested in product demo",
"lead_quality": "high",
"next_action": "schedule_demo"
},
"input_variables": {
"customer_name": "John Doe",
"product_interest": "Pro Plan"
},
"transcript": "AI: Hello! This is Sarah from Autocalls. How are you today?\nCustomer: Hi, I'\''m doing well, thanks for calling...\nAI: I'\''m calling to tell you about our new product features.\nCustomer: That sounds interesting, tell me more...",
"recording_url": "https://app.autocalls.ai/storage/recordings/call-12345.mp4",
"created_at": "2025-01-15T10:30:00.000000Z",
"finished_at": "2025-01-15T10:32:05.000000Z",
"lead": {
"id": 789,
"phone_number": "+1234567890",
"variables": {
"source": "website",
"interest_level": "high"
},
"status": "contacted",
"created_at": "2025-01-15T09:00:00.000000Z",
"updated_at": "2025-01-15T10:32:05.000000Z",
"campaign": {
"id": 456,
"name": "Product Demo Campaign",
"status": "active",
"allowed_hours_start_time": "09:00",
"allowed_hours_end_time": "17:00",
"allowed_days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
],
"max_calls_in_parallel": 5,
"max_retries": 3,
"retry_interval": 60,
"created_at": "2025-01-15T08:00:00.000000Z",
"updated_at": "2025-01-15T08:00:00.000000Z"
}
}
}'
Webhook for when a call is made
curl --request POST \
--url https://app.robocallz.ai/webhooks/post-call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 12345,
"customer_phone": "+1234567890",
"assistant_phone": "+1987654321",
"duration": 125,
"status": "completed",
"extracted_variables": {
"status": true,
"summary": "Customer interested in product demo",
"lead_quality": "high",
"next_action": "schedule_demo"
},
"input_variables": {
"customer_name": "John Doe",
"product_interest": "Pro Plan"
},
"transcript": "AI: Hello! This is Sarah from Autocalls. How are you today?\nCustomer: Hi, I'\''m doing well, thanks for calling...\nAI: I'\''m calling to tell you about our new product features.\nCustomer: That sounds interesting, tell me more...",
"recording_url": "https://app.autocalls.ai/storage/recordings/call-12345.mp4",
"created_at": "2025-01-15T10:30:00.000000Z",
"finished_at": "2025-01-15T10:32:05.000000Z",
"lead": {
"id": 789,
"phone_number": "+1234567890",
"variables": {
"source": "website",
"interest_level": "high"
},
"status": "contacted",
"created_at": "2025-01-15T09:00:00.000000Z",
"updated_at": "2025-01-15T10:32:05.000000Z",
"campaign": {
"id": 456,
"name": "Product Demo Campaign",
"status": "active",
"allowed_hours_start_time": "09:00",
"allowed_hours_end_time": "17:00",
"allowed_days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
],
"max_calls_in_parallel": 5,
"max_retries": 3,
"retry_interval": 60,
"created_at": "2025-01-15T08:00:00.000000Z",
"updated_at": "2025-01-15T08:00:00.000000Z"
}
}
}'
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.