Play a message in a call
Play an audio message from a link (URL) of your choice, this command can be used to play one or more audio messages in sequence on a voice call.
POST
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/playback
Playback url into a channel call
Payload della richiesta
media
array of string
obbligatorio
loop
integer
timeout
integer
pauseMilliseconds
integer
Payload della risposta
id
string
callId
string
callFlowId
string
status
string
command
string
conditions
array of object
Mostra attributi secondari
conditions.variable
string
Possible values: keys, speech
conditions.operator
string
Possible values: eq, ne, ==, !=, contains
conditions.value
string
Esempio di codice
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/playback' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'Example 1: Play a media file in a call
Esempio di codice
curl -X POST "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/playback" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Esempio di codice
{
"media": [
"string"
],
"loop": 0,
"timeout": 0
}
Esempio di codice
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"callId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"callFlowId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "string",
"command": "string"
}