Learn how to implement webhook callbacks to receive real-time call status updates and analysis results from Ringg AI
callback_url
in your call requests, our system will send HTTP POST requests to your endpoint whenever the call status changes.
callback_url
parameter in your call initiation requests:
registered
- Call has been queued and is waiting to be processedongoing
- Call is currently in progresscompleted
- Call has finished successfullyfailed
- Call was not answered or failederror
- Call failed to connectcancelled
- Call was cancelledField | Type | Description | Example |
---|---|---|---|
status | string | Always “success” for successful webhooks | "success" |
data.call_id | string | Unique identifier for the call | "550e8400-e29b-41d4-a716-446655440000" |
data.call_direction | string | Direction of the call | "outbound" |
data.status | string | Current status of the call | "completed" |
data.call_duration | number | Call duration in seconds (if completed) | 120.5 |
data.recording_url | string | URL to call recording (if available) | "https://..." |
data.transcript | string | Call transcript text | "Hello, this is..." |
data.agent_id | string | ID of the agent that handled the call | "830f767a-397e-4b39-82ff-235cd344e2f9" |
data.retry | number | Number of retry attempts | 0 |
data.from_number | string | Phone number that made the call | "+1987654321" |
data.to_number | string | Phone number that received the call | "+1234567890" |
data.custom_args_values | object | Custom data from your original request | {"callee_name": "John", "company_name": "Acme Corp"} |
message | string | Descriptive message | "Call Details" |
callback_args
call_id
https://your-webhook-url.com/callback
Content-Type: application/json
X-API-Key: sk_live_1234567890abcdef
call_id
https://your-webhook-url.com/callback?source=api&version=v1
With headers:
"Content-Type": "application/json"
in your callback_args.headers
as it’s not automatically set.
data.analysis
field.
/callback
path is just an example.