Skip to main content
POST
/
v1
/
calls
Start call (BIC)
curl --request POST \
  --url https://pilotstatus.com.br/v1/calls \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "to": "+5511999999999",
  "sdp": "v=0\r\n...",
  "bizOpaqueCallbackData": "order-42"
}
'
{
  "id": "call_01HZX...",
  "externalCallId": "wacid.ABGG...",
  "status": "INITIATED"
}

Authorizations

x-api-key
string
header
required

Your ps_ API key

Body

application/json
to
string
required

User phone number to call.

Example:

"+5511999999999"

sdp
string

SDP offer from your WebRTC client (a=setup:active). Required on Meta numbers; omit on web numbers.

sdpType
string

Always "offer" (defaulted).

Example:

"offer"

bizOpaqueCallbackData
string

Opaque data echoed back on the terminate event.

Example:

"order-42"

Response

Start call