Pular para o conteúdo principal
POST
/
v1
/
calls
/
{callId}
/
play
Tocar áudio na chamada (web)
curl --request POST \
  --url https://pilotstatus.com.br/v1/calls/{callId}/play \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "mediaUrl": "https://cdn.example.com/ivr-greeting.mp3"
}
'
{
  "success": true,
  "id": "call_01HZX...",
  "status": "ACCEPTED"
}

Autorizações

x-api-key
string
header
obrigatório

Sua chave de API ps_

Parâmetros de caminho

callId
string
obrigatório

Id do Pilot Status (call_...) ou id do provedor (CallID).

Corpo

application/json
mediaUrl
string
obrigatório

URL pública do áudio a tocar (.mp3, .wav ou .opus).

Exemplo:

"https://cdn.example.com/ivr-greeting.mp3"

Resposta

Tocar áudio