Initiate outbound call
Initiates an outbound Business-Initiated Call. The Telnyx-side SIP
leg is originated server-side (Option B: SIP-first). Telnyx INVITEs
Meta directly over TLS:5061 with the SIP digest credentials we
captured at calling-enablement time). No client-side SDP is
required; pass only accountId and to.
API key authentication - use your Zernio API key as a Bearer token
In: header
Consumer wa_id (E.164
Per-call destination override. Same accepted shape as the number's stored forwardTo (tel:+E164, sip:..., wss://...).
Accepted for forward compatibility. Not currently echoed back in webhook payloads (SIP-first flow does not pass through Meta's Graph API where Meta would echo this).
length <= 512Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappcalling.initiateWhatsAppCall({ body: { accountId: 'account_abc123', to: 'string', },});console.log(data);{
"success": true,
"callId": "string",
"telnyxCallControlId": "string",
"status": "dialing",
"direction": "outbound",
"to": "string",
"forwardTo": "string",
"recordingEnabled": true
}{
"error": "Unauthorized"
}Enable calling on a number POST
Enable WhatsApp Business Calling on a connected number. Configures Meta calling.status=ENABLED with our Telnyx SIP endpoint, fetches and stores the Meta-issued SIP password (encrypted), and snapshots the customer's forward-to destination.
Look up a library template GET
Look up a single pre-approved Template Library template by its exact name, to introspect its structure before importing it. Most importantly it returns the template's `buttons`: a library template with `URL` / `PHONE_NUMBER` buttons must be created with a matching `library_template_button_inputs` array (see Create Template), or Meta rejects it. Use this to discover which inputs to collect.