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
Abfrageparameter
limit
integer
Limits the number of results to return.
pageToken
string
The cursor that keeps track of the current position in the results.
Antwort-Payload
results
array of object
Untergeordnete Attribute anzeigen
results.id
string
erforderlich
results.callId
string
erforderlich
results.channelId
string
results.status
string
erforderlich
Possible values: accepted, ongoing, paused, completed, available, absent, failed
results.origin
string
erforderlich
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
erforderlich
results.updatedAt
string
erforderlich
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.
Codebeispiel
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.
Codebeispiel
curl "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Codebeispiel
// N/A
Codebeispiel
{
"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"
}
]
}