Skip to main content
POST
Call action

Authorizations

x-api-key
string
header
required

Your Pilot Status API key (ps_...). You may also send Authorization: Bearer ps_... or ?access_token=ps_....

Path Parameters

phoneNumberId
string
required

Meta phone-number id of the number linked to your API key.

Body

application/json
messaging_product
enum<string>
required

Always whatsapp.

Available options:
whatsapp
Example:

"whatsapp"

action
enum<string>
required

Call control action.

Available options:
connect,
pre_accept,
accept,
reject,
terminate
Example:

"connect"

to
string

Callee MSISDN (for connect).

Example:

"5511999999999"

call_id
string

Existing call id (accept/reject/terminate/pre_accept).

session
object

WebRTC session (connect/accept/pre_accept).

Example:

Response

Meta Graph API response.

messaging_product
string
calls
object[]