Get calling config for an account
Returns the local calling configuration snapshot for the connected
WhatsApp account: whether calling is enabled, the forward-to
destination URI, recording opt-in state, the phone number record id
(use as {id} on the read-write calling sub-resource at
/v1/phone-numbers/{id}/whatsapp/calling) and whether SIP digest
credentials are stored (the encrypted password itself is never
returned). Also carries account-level extras (billing eligibility,
current-period spend) that the number-keyed GET does not.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
WhatsApp account ID
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.whatsappcalling.getWhatsAppCallingConfig({ query: { accountId: 'account_abc123', },});console.log(data);{ "phoneNumberDocId": "string", "phoneNumber": "string", "callingEnabled": true, "callDeepLink": "string", "forwardTo": "string", "recordingEnabled": true, "sipAuthUsername": "string", "sipAuthPasswordConfigured": true, "callIconCountries": [ "st" ], "callerIdMode": "business", "callerIdVerified": true, "maxCallDurationSeconds": 0, "forwardCallerId": "business"}Verify the Meta re-verification code for a BYO WhatsApp number
Submits the OTP Meta sent in response to POST /v1/accounts/{accountId}/whatsapp/request-code. This only verifies the number with Meta; it does not register it on the Cloud API. Call POST /v1/accounts/{accountId}/whatsapp/register afterward to complete activation.
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.