Zernio
Zernio
API Reference

Voice & Calling

Calls

List phone callsGETPlace an outbound phone callPOSTGet a phone callGETHang up a live callPOSTBlind-transfer a live callPOSTGet a call recordingGETEstimate call costGET

Browser Softphone

Mint a browser softphone sessionPOSTDial from the browser softphonePOST

Number Setup

Enable phone calling on a numberPOSTDisable phone calling on a numberDELETEAttach a number to a SIP trunkPOSTDetach a number from its SIP trunkDELETE

SIP Trunks

List SIP trunksGETCreate a SIP trunkPOSTGet a SIP trunkGETDelete a SIP trunkDELETERotate a SIP trunk's passwordPOST
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Voice & Calling

Create a SIP trunk

Creates a SIP trunk an external voice platform (Retell, ElevenLabs, Vapi, or any SIP endpoint) can import your Zernio numbers into. The trunk carries both directions: inbound calls on attached numbers are delivered to sipHost, and the platform originates outbound calls through termination.uri with the digest credentials.

The digestPassword is returned only by this call (and by rotate-credentials); store it immediately. Attach any number of numbers to a trunk. Several trunks may point at the same host. Each carries its own credentials and spend cap, so separate destinations (e.g. an agency's clients) stay isolated.


POST
/v1/phone-numbers/sip-trunks

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

{  "id": "string",  "label": "string",  "sipHost": "string",  "sipPort": 0,  "transport": "tls",  "termination": {    "uri": "string",    "username": "string"  },  "numbersAttached": 0,  "createdAt": "2019-08-24T14:15:22Z",  "digestPassword": "string"}
Was this page helpful?

List SIP trunks

Previous Page

Get a SIP trunk

Next Page

label*string

Display name for the trunk.

Lengthlength <= 80
sipHost*string

Fully-qualified hostname inbound calls are delivered to (e.g. sip.rtc.elevenlabs.io, sip.retellai.com).

sipPort?integer

Defaults to 5061 for tls, 5060 otherwise.

Range1 <= value <= 65535
transport?string

Signaling transport toward sipHost. Default tls (with SRTP media).

Value in

  • "tls"
  • "tcp"
  • "udp"