Record a call session
Records the call session. If a call is bridged, both audio streams are recorded.
POST
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings
Record a channel call session
Payload della richiesta
maxLength
integer
stereo
boolean
Payload della risposta
command
object
Mostra attributi secondari
command.id
string
command.callId
string
command.callFlowId
string
command.status
string
command.command
string
command.conditions
array of object
Mostra attributi secondari
command.conditions.variable
string
Possible values: keys, speech
command.conditions.operator
string
Possible values: eq, ne, ==, !=, contains
command.conditions.value
string
recordingId
string
Esempio di codice
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'Esempio di codice
curl -X POST "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Esempio di codice
{
"maxLength": 0,
"stereo": true
}
Esempio di codice
{
"command": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"callId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"callFlowId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "string",
"command": "string"
},
"recordingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}