Skip to main content
POST
Enable or disable calling on a WhatsApp number

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Path Parameters

id
string
required

Body

application/json
enabled
boolean
default:true

Meta calling.status.

call_icon_visibility
enum<string>
default:DEFAULT
Available options:
DEFAULT,
DISABLE_ALL
callback_permission
boolean
default:true

A user calling you grants a 7-day call-back permission automatically.

Response

Settings applied

object
string
Example:

"whatsapp.number"

id
string
Example:

"wan_..."

waba_id
string

WhatsApp Business Account id.

phone_number_id
string

Meta's id for the business number (what the webhook carries).

phone_number
string

E.164.

Example:

"+14155550123"

app_id
string | null
agent_id
string | null

Agent that answers inbound WhatsApp calls.

calling_enabled
boolean
calling_settings
object

Last calling settings pushed to Meta.

status
enum<string>
Available options:
active,
released
created_at
integer

Unix ms.

updated_at
integer

Unix ms.

released_at
integer | null

Unix ms.