calls_hangup
Hang up an active voice call by call_id. Use after calls.make when the agent decides to terminate before the callee does, or to abort a stuck call. Idempotent: returns success if the call is already terminal. end_for_everyone=true (Telegram group calls only, workspace owner or admin) also ends the group's voice chat for every participant, as Telegram's 'End voice chat' does; it works on a call already ended on our side, for a voice chat left open in the group.
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": "calls_hangup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Short internal reason for ending the call (e.g. 'campaign timeout'). Stored on voice_sessions.metadata. | |
| call_id | Yes | Call ID returned by calls.make in _meta.call_id. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| end_for_everyone | No | Telegram group calls only: also end the group's voice chat for everyone, not just take our bot out. Needs the call's Telegram account to be an admin of the group allowed to manage voice chats, and the caller to be a workspace owner or admin. OMIT to only leave. |