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 WhatsAppPhoneNumber
doc id (use as {id} on the calling-config write endpoints) and
whether SIP digest credentials are stored (the encrypted password
itself is never returned).
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
WhatsApp social 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,
"forwardTo": "string",
"recordingEnabled": true,
"sipAuthUsername": "string",
"sipAuthPasswordConfigured": true,
"callIconCountries": [
"st"
]
}{
"error": "Unauthorized"
}Get a single call GET
Previous Page
Update calling config PATCH
Update fields on an already-enabled number. Only fields present in the body are written; `undefined` leaves the stored value alone, explicit `null` clears a nullable field. No Meta side effect, this only changes local routing state consumed by the Telnyx webhook handler.