List call recordings of a call
This endpoint lists all active call recordings of an active call. If you want to list recordings from a completed call, you should use the Recordings API.
GET
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings
Get a list of recordings from a channel call
Parametry zapytania
limit
integer
Limits the number of results to return.
pageToken
string
The cursor that keeps track of the current position in the results.
Treść odpowiedzi
results
array of object
Pokaż atrybuty podrzędne
results.id
string
wymagane
results.callId
string
wymagane
results.channelId
string
results.status
string
wymagane
Possible values: accepted, ongoing, paused, completed, available, absent, failed
results.origin
string
wymagane
Possible values: call-command-record, call-command-record-call, create-call, bridge-call
results.duration
integer
results.stereo
boolean
results.endCause
string
results.createdAt
string
wymagane
results.updatedAt
string
wymagane
results.startedAt
string
results.endedAt
string
nextPageToken
string
The token that can be passed as pageToken in URL to retrieve the next set of results. If missing, no more results to display.
Przykład kodu
curl -X GET 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'Example 1: Get the list of call recordings
You might consider filtering the recording list based on a limit for example.
Przykład kodu
curl "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Przykład kodu
// N/A
Przykład kodu
{
"results": [
{
"id": "32b98cd8-db4b-4a47-816e-ff7ff72b1da6",
"channelId": "880d8171-cbab-47bb-81b6-b1a0902da136",
"callId": "0b4cbfa2-813f-4b93-8007-265875bb88bb",
"status": "available",
"origin": "create-call",
"duration": 0,
"stereo": false,
"createdAt": "2023-10-26T18:28:55.646Z",
"updatedAt": "2023-10-26T18:28:55.646Z",
"startedAt": "2023-10-26T18:28:55.373Z",
"endedAt": "0001-01-01T00:00:00Z"
}
]
}