# Receiving a Callback After a Call

Source: https://callingly.com/help/article/97-receiving-a-callback-after-a-call

When a call ends, Callingly sends a <b>POST</b> request with the details below to each webhook set up for the <code>call_completed</code> event, under <b>Settings → Webhooks</b> 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 <code>transcript</code> can still be null if it isn't ready by then. Answered AI calls send it too.

<table><colgroup><col><col><col></colgroup><tbody><tr><td><strong>Field</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>id</td><td>integer</td><td><br></td></tr><tr><td>account_id</td><td>integer</td><td><br></td></tr><tr><td>team_id</td><td>integer</td><td><br></td></tr><tr><td>status</td><td>string</td><td>ringing, in-progress, offline, missed, completed, ignored, busy, or error</td></tr><tr><td>result</td><td>string</td><td>missed, voicemail, contacted, removed</td></tr><tr><td>direction</td><td>string</td><td>inbound, outbound</td></tr><tr><td>type</td><td>string</td><td>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).</td></tr><tr><td>transfer_id</td><td>integer or null</td><td>On a transfer leg, the id of the call it was transferred from</td></tr><tr><td>is_fallback</td><td>boolean</td><td>true, false</td></tr><tr><td>tag</td><td>object or null</td><td>{id, name}</td></tr><tr><td>stage</td><td>object or null</td><td>{id, name}</td></tr><tr><td>lead</td><td>object or null</td><td><p>See <a href="#Lead-CNZVt" target="_self">Lead</a></p><br><p>{id, first_name, last_name, email, phone_number, company, category, source, crm_id, tags, notes, comments}</p></td></tr><tr><td>user</td><td>object or null</td><td><p>See <a href="#User-KzNhO" target="_self">User</a></p><br><p>{name, phone_number, custom_id, fub_id, email}</p></td></tr><tr><td>number</td><td>object or null</td><td><p>See <a href="#Phone-Number-xR4b7" target="_self">Phone Number</a></p><br><p>{name, phone_number}</p></td></tr><tr><td>lead_attempt</td><td>integer</td><td>Which step of the lead's sequence this call was, counting from 1. It isn't the lead's total number of calls.</td></tr><tr><td>agent_attempt</td><td>integer</td><td>Number of time the agent was called</td></tr><tr><td>recording_url</td><td>string</td><td><p>Example:</p><p>https://cdn.callingly.com/recordings/xyz.mp3</p></td></tr><tr><td>transcript</td><td>string</td><td><br></td></tr><tr><td>summary</td><td>string or null</td><td>AI summary of the conversation. Only generated for answered calls of 60 seconds or more.</td></tr><tr><td>ai_agent</td><td>object or null</td><td>{id, name} of the AI agent. Set only on AI calls, so use it to tell an AI call from a rep's call.</td></tr><tr><td>ai_outcome</td><td>string or null</td><td>What the AI agent did on the call, e.g. transfer_success, call_scheduled, voicemail</td></tr><tr><td>response_time</td><td>integer</td><td>Time in seconds</td></tr><tr><td>seconds</td><td>integer</td><td><br></td></tr><tr><td>date</td><td>date string</td><td><p>MMM DD, YYYY</p><br><p>Example:</p><p>Dec 25, 1975</p></td></tr><tr><td>time</td><td>time string</td><td><p>HH:MM:SS</p><br><p>Example:</p><p>14:15:16</p></td></tr><tr><td>datetime</td><td>ISO8601 string</td><td><p>YYYY-MM-DDTHH:MM:SS+TZ</p><br><p>Example:</p><p>2019-02-01T03:45:27+00:00</p></td></tr></tbody></table>

<br>

<h3 id="Lead-CNZVt">Lead</h3>

<table><colgroup><col><col><col></colgroup><tbody><tr><td><strong>Field</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>id</td><td>integer</td><td><br></td></tr><tr><td>first_name</td><td>string</td><td><br></td></tr><tr><td>last_name</td><td>string</td><td><br></td></tr><tr><td>email</td><td>string</td><td><br></td></tr><tr><td>phone_number</td><td>string</td><td><br></td></tr><tr><td>company</td><td>string</td><td><br></td></tr><tr><td>category</td><td>string</td><td><br></td></tr><tr><td>source</td><td>string</td><td><br></td></tr><tr><td>crm_id</td><td>integer or null</td><td><br></td></tr><tr><td>tags</td><td>array</td><td>[{id, name}]</td></tr><tr><td>notes</td><td>array</td><td>["Note text"]</td></tr><tr><td>comments</td><td>string</td><td><br></td></tr></tbody></table>

<br>

<h3 id="User-KzNhO">User</h3>

<table><colgroup><col><col><col></colgroup><tbody><tr><td><strong>Field</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>name</td><td>string</td><td><br></td></tr><tr><td>phone_number</td><td>string</td><td><br></td></tr><tr><td>custom_id</td><td>integer or null</td><td><br></td></tr><tr><td>fub_id</td><td>integer or null</td><td>Follow Up Boss Id</td></tr><tr><td>email</td><td>string</td><td><br></td></tr></tbody></table>

<br>

<h3 id="Phone-Number-xR4b7">Phone Number</h3>

<table><colgroup><col><col><col></colgroup><tbody><tr><td><strong>Field</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>name</td><td>string</td><td><br></td></tr><tr><td>phone_number</td><td>string</td><td><br></td></tr></tbody></table>
