Skip to main content
POST
/
v1
/
calls
/
{callId}
/
realtime-session
Realtime media session (web)
curl --request POST \
  --url https://pilotstatus.com.br/v1/calls/{callId}/realtime-session \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "mode": "talk"
}'
{
  "wsUrl": "wss://evolution-go.pilotstatus.com.br/call/media/realtime/ws/inst1/1A2B3C4D?token=...",
  "token": "d3f4...",
  "expiresInSeconds": 120
}

Authorizations

x-api-key
string
header
required

Your ps_ API key

Path Parameters

callId
string
required

Pilot Status id (call_...) or provider call id (CallID).

Body

application/json
mode
string
required

talk = send and receive audio; listen = receive only.

Example:

"talk"

Response

Open realtime session