Skip to main content
POST
Ask a user for permission to call them

Authorizations

Authorization
string
header
required

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

Body

application/json
number_id
string
required
to
string
required

The user's WhatsApp number (E.164).

Example:

"+919876543210"

text
string
required

Why you want to call, shown in the permission prompt.

Maximum string length: 1024

Response

Request sent

object
string
Example:

"whatsapp.call_permission_request"

number_id
string
user
string
message_id
string | null