voice & calling
List SIP trunks
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
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.listSipTrunks();console.log(data);{
"trunks": [
{
"id": "string",
"label": "string",
"sipHost": "string",
"sipPort": 0,
"transport": "tls",
"termination": {
"uri": "string",
"username": "string"
},
"numbersAttached": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
],
"enabled": true
}{
"error": "Unauthorized"
}Get a call (any channel) GET
Channel-agnostic call detail: works for both WhatsApp and regular phone (PSTN) calls, so any row from `GET /v1/calls` can be opened without branching on `channel`. Returns the full call including transcript segments, with `contactId`/`contactName` set when the counterparty matches a CRM contact.
List phone calls GET
Your PSTN voice calls (inbound + outbound), newest first. Cursor pagination: pass the returned `nextCursor` as `before` for the next page. For a history that also includes WhatsApp calls, use `GET /v1/calls`.