Enable calling on a number
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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
WhatsAppPhoneNumber Mongo ID
tel:+E164 / sip:... / wss://... destination
Stored encrypted
falseResponse 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.enableWhatsAppCalling({ path: { id: 'abc123', }, body: { accountId: 'account_abc123', forwardTo: 'string', },});console.log(data);{
"success": true,
"callingEnabled": true,
"sipHostname": "string",
"forwardTo": "string"
}{
"error": "Unauthorized"
}Disable calling on a number DELETE
Disable calling. Sends calling.status=DISABLED to Meta (best-effort) and flips the local `callingEnabled` flag off. forwardTo and SIP creds are preserved so a re-enable does not lose the destination.
Initiate outbound call POST
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`.