Check call permission
Returns the permission state and the list of available actions for
a given consumer wa_id (e.g. start_call, send_call_permission_request).
Use this before placing a call to decide whether to prompt for
consent first.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Consumer wa_id (E.164, leading + optional)
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.getWhatsAppCallPermissions({ query: { accountId: 'account_abc123', to: 'string', },});console.log(data);{
"permission": {
"status": "temporary",
"expiration_time": 0
},
"actions": [
{
"action_name": "send_call_permission_request",
"can_perform_action": true
}
]
}{
"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.
List call history for an account GET
Compact history listing for a single connected account. Results are scoped to the resolved SocialAccount; profile-scoped team members cannot read calls on sibling accounts.