End a callback call
voixcall_end_callUse this when the user asks to hang up a callback call placed with voixcall_place_call. It ends whichever legs are live; the charge is settled from the connected time. Do not use for calls placed from the app, or to cancel a quote (quotes expire on their own).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"call_id": "<call_id>"
},
"name": "voixcall_end_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call_id | Yes | The call id (call_ prefix) returned by voixcall_place_call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cost | Yes | The recorded charge, decimal string with two decimals; null unless status is completed. | |
| object | Yes | Always "call". | |
| origin | Yes | Which surface placed the call. | |
| spoken | Yes | One sentence to say to the user. | |
| status | Yes | initiating, connecting, active, completed, failed, no-answer, busy, canceled; callback calls add ringing_you and ringing_them. New values may appear. | |
| session | Yes | Callback calls only; null for app and inbound calls. | |
| currency | Yes | ||
| ended_at | Yes | ||
| livemode | Yes | ||
| direction | Yes | ||
| placement | Yes | How the call was set up: from the app or browser (webrtc), by ringing your phone first (callback), or received on your number (inbound). | |
| to_number | Yes | E.164. | |
| started_at | Yes | ||
| transcript | Yes | The call's summary-level transcript (redacted, no utterances) with expand[]=transcript, when the call has one; null otherwise. Needs transcripts:read and the account setting "Allow connected apps to read call summaries" (Settings → Connected apps), else expand[]=transcript answers 403. | |
| answered_at | Yes | Not recorded for app calls today: null. | |
| cost_so_far | Yes | Charge accrued so far, decimal string, only while status is active; null otherwise (including initiating and connecting). Counted from started_at, so it includes ring time until answered_at is recorded. | |
| from_number | Yes | E.164 caller ID used. | |
| is_recorded | Yes | ||
| rate_per_minute | Yes | The per-minute rate fixed at call setup and charged for this call, decimal string with four decimals. | |
| duration_seconds | Yes | Billable seconds once the call has ended. | |
| counterparty_name | Yes | Name of the contact whose stored phone number exactly matches the other party (to_number outbound, from_number inbound); a contact saved in another format, such as with spaces, does not match. Requires contacts:read, else null. | |
| transcript_status | Yes | null when no transcript was requested. | |
| max_duration_seconds | Yes | Time limit the balance allowed when the call was set up, while status is active. Derived from the balance, so it needs credits:read; null without it. Not recorded for app-placed personal calls today, so null for them. |