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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
+E164 phone number (tel: prefix optional) or a sip: URI. wss:// is not a valid transfer target.
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.transferVoiceCall({ path: { id: 'abc123', }, body: { to: 'string', },});console.log(data);{
"success": true,
"callId": "string",
"transferredTo": "string"
}{
"error": "Unauthorized"
}Hang up a live call POST
Hangs up a live call on demand. 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.
List SMS opt-outs GET
The recipients who opted out of SMS (replied STOP) across your numbers, most recent first. Compliance surface: you must be able to see and export your opt-out list. Read-only: a recipient is re-subscribed only by replying START. Pass `format=csv` to download a CSV instead of JSON.