Hang up a live call
Hangs up a live call on demand, including an outbound call that is
still ringing and has not been answered yet (the callee stops ringing
immediately). Works for PSTN calls and for WhatsApp calls (the callId
returned by POST /v1/whatsapp/calls, or an inbound WhatsApp call id).
A WhatsApp call forwarded to a wss:// destination also ends
automatically when that WebSocket closes. Idempotent: ending a call that already
ended (or never connected) returns success with the call's current
status. Final duration/cost are written asynchronously when the hangup
event lands, so the call doc may briefly still show its prior status.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.voice.endVoiceCall({ path: { id: 'abc123', },});console.log(data);{ "success": true, "callId": "string", "status": "string"}Get a phone call
Full call detail, including the transcript segments when transcription was on.
Blind-transfer a live call
Moves the call's current leg to a new destination (a phone number or a SIP endpoint). This is a BLIND transfer: control of the leg is handed off and the call ends normally when the transferred leg hangs up. The caller ID presented on the transfer leg is always your own number.