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
查询参数
limit
integer
Limits the number of results to return.
pageToken
string
The cursor that keeps track of the current position in the results.
响应载荷
results
array of object
显示子属性
results.id
string
必填
results.callId
string
必填
results.channelId
string
results.status
string
必填
Possible values: accepted, ongoing, paused, completed, available, absent, failed
results.origin
string
必填
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
必填
results.updatedAt
string
必填
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.
代码示例
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.
代码示例
curl "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
代码示例
// N/A
代码示例
{
"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"
}
]
}