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
Anfrage-Payload
maxLength
integer
stereo
boolean
Antwort-Payload
command
object
Untergeordnete Attribute anzeigen
command.id
string
command.callId
string
command.callFlowId
string
command.status
string
command.command
string
command.conditions
array of object
Untergeordnete Attribute anzeigen
command.conditions.variable
string
Possible values: keys, speech
command.conditions.operator
string
Possible values: eq, ne, ==, !=, contains
command.conditions.value
string
recordingId
string
Codebeispiel
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'Codebeispiel
curl -X POST "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Codebeispiel
{
"maxLength": 0,
"stereo": true
}
Codebeispiel
{
"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"
}