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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
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 } ]}Disable calling on a number
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
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. Cursor pagination: pass the returned `nextCursor` as `before` to fetch the next page (same scheme as `GET /v1/calls`). `since`/`until` remain as absolute range filters and combine with the cursor.