{
"call_id": "<string>",
"payload": {
"type": "complete",
"response_body": {},
"call_data": {
"call_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"phone_number": "<string>",
"total_duration": 123,
"enhanced_transcript": {},
"report": {},
"recording_url": "<string>",
"permanent_recording_url": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z"
},
"call_started": "2023-11-07T05:31:56Z",
"retry_attempt_number": 1,
"root_call_id": "<string>",
"next_retry_at": "2023-11-07T05:31:56Z"
}
}Webhooks
Receive a call outcome
Sent to your webhook URL, not a Sarj API endpoint. Use its optional configured credential, not your API key. Persist and deduplicate by call_id, then acknowledge within 5 seconds. complete includes voicemail; inspect payload.call_data.status for its outcome.
WEBHOOK
callEnded
{
"call_id": "<string>",
"payload": {
"type": "complete",
"response_body": {},
"call_data": {
"call_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"phone_number": "<string>",
"total_duration": 123,
"enhanced_transcript": {},
"report": {},
"recording_url": "<string>",
"permanent_recording_url": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z"
},
"call_started": "2023-11-07T05:31:56Z",
"retry_attempt_number": 1,
"root_call_id": "<string>",
"next_retry_at": "2023-11-07T05:31:56Z"
}
}
