whatsapp calling
Check call permission for a consumer
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.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
accountIdstring
tostring
Consumer wa_id (E.164
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"
}Empty