Query Platform Recording Segments
Queries the list of recording segments that are associated with a platform CDR.
Request URL
GET {base_url}/uc-creport/api/v1/platform/recording/{cdrMainId}
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.x-tenant-code No String The tenant name. Note: You can obtain tenant name using the Query Tenants interface.
- Path parameters
-
Parameter Required Type Description cdrMainId Yes String The ID of the CDR main record. You can obtain the ID using the Query Platform CDRs interface.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Recording_Segments_Result> | The list of the recording segments. |
- Recording_Segments_Result
-
Parameter Type Description recordings Array<Platform_Recording_Segment> The list of recording segments of the CDR. totalDuration Integer The total duration of all recording segments, in milliseconds. totalSize String The total size of all recording segments, in bytes.
- Platform_Recording_Segment
-
Parameter Type Description id String The ID of the recording segment. duration Integer The duration of the recording segment, in milliseconds. format String The format of the recording file:
wavmp3
speakerSegments Array<Platform_Speaker_Segment> The speaker time ranges of the recording segment, which are used to render the call timeline. waveformSamples String The waveform amplitude samples of the recording segment, compressed with gzip. startTime String The start time of the recording segment, in Unix timestamp format (microseconds). cdrLegId String The ID of the CDR leg record that the recording segment belongs to.
- Platform_Speaker_Segment
-
Parameter Type Description speaker String The role of the speaker:
callercallee
number String The number of the speaker. name String The name of the speaker. avatar String The URL of the speaker's avatar. segments Array<Platform_Time_Range> The list of the time ranges when the speaker is active.
- Platform_Time_Range
-
Parameter Type Description startMs Integer The start of the time range, in milliseconds. endMs Integer The end of the time range, in milliseconds.
Example
Request example
GET /uc-creport/api/v1/platform/recording/371139016054157312 HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9v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requestId": "7e76bb51b41b3cea6166aa034d33f58a", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "recordings": [], "totalDuration": 0, "totalSize": "0" } }