Pular para o conteúdo

POST /v1/channels/{id}/calls/{callId}/commands

POST
/v1/channels/{id}/calls/{callId}/commands
curl --request POST \
--url https://seu-endereco-da-api/v1/channels/example/calls/example/commands \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "action": "answer", "mediaKey": "example", "emoji": "example", "orientation": 1, "enabled": true }'

Permissão que a Chave de acesso precisa: Gerenciar chamadas (calls:manage).

id
required
string
callId
required
string
Media typeapplication/json
object
action
required
string
Allowed values: answer reject hangup video.start video.accept video.stop video.enable video.orientation play video.play reaction
mediaKey
string
<= 512 characters
emoji
string
<= 16 characters
orientation
number
<= 3
enabled
boolean