Receiving a Callback After a Call
When a call ends, Callingly sends a POST request with the details below to each webhook set up for the call_completed event, under Settings → Webhooks or through the API. It usually goes out about a minute after the call ends. If the transcript is still being processed, Callingly waits up to five more minutes for it, so transcript can still be null if it isn't ready by then. Answered AI calls send it too.
| Field | Type | Description |
| id | integer |
|
| account_id | integer |
|
| team_id | integer |
|
| status | string | ringing, in-progress, offline, missed, completed, ignored, busy, or error |
| result | string | missed, voicemail, contacted, removed |
| direction | string | inbound, outbound |
| type | string | How the call was placed, e.g. automatic, manual, app, transfer, ai_transfer. An AI warm transfer sends two events: the AI call, and the rep's leg (ai_transfer). |
| transfer_id | integer or null | On a transfer leg, the id of the call it was transferred from |
| is_fallback | boolean | true, false |
| tag | object or null | {id, name} |
| stage | object or null | {id, name} |
| lead | object or null |
See Lead {id, first_name, last_name, email, phone_number, company, category, source, crm_id, tags, notes, comments, params} |
| user | object or null |
See User {name, phone_number, custom_id, fub_id, email} |
| number | object or null |
See Phone Number {name, phone_number} |
| lead_attempt | integer | Number of times the lead was called |
| agent_attempt | integer | Number of time the agent was called |
| recording_url | string |
Example: https://cdn.callingly.com/recordings/xyz.mp3 |
| transcript | string |
|
| summary | string or null | AI summary of the conversation. Only generated for answered calls of 60 seconds or more. |
| ai_agent | object or null | {id, name} of the AI agent. Set only on AI calls, so use it to tell an AI call from a rep's call. |
| ai_outcome | string or null | What the AI agent did on the call, e.g. transfer_success, call_scheduled, voicemail |
| response_time | integer | Time in seconds |
| seconds | integer |
|
| date | date string |
MMM DD, YYYY Example: Dec 25, 1975 |
| time | time string |
HH:MM:SS Example: 14:15:16 |
| datetime | ISO8601 string |
YYYY-MM-DDTHH:MM:SS+TZ Example: 2019-02-01T03:45:27+00:00 |
Lead
| Field | Type | Description |
| id | integer |
|
| first_name | string |
|
| last_name | string |
|
| string |
|
|
| phone_number | string |
|
| company | string |
|
| category | string |
|
| source | string |
|
| crm_id | integer or null |
|
| tags | array | [{id, name}] |
| notes | array | [{content}] |
| comments | string |
|
| params | string |
|
User
| Field | Type | Description |
| name | string |
|
| phone_number | string |
|
| custom_id | integer or null |
|
| fub_id | integer or null | Follow Up Boss Id |
| string |
|
Phone Number
| Field | Type | Description |
| name | string |
|
| phone_number | string |
|