Download CDR Recording Segments

Downloads the recording segments of a CDR. A single segment is packaged and returned immediately, while multiple segments are archived as an asynchronous task.

Request URL

POST {base_url}/uc-creport/api/v1/cdr/{cdrMainId}/recordings/segments/download

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code Yes 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 Search Recordings 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.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
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<Segments_Download_Result> The result of the segment download request.
Segments_Download_Result
Parameter Type Description
downloadUrl String The temporary download URL of the packaged segments. This parameter is returned immediately for a single recording segment, and is empty when multiple segments are archived as a task.
expireAt String The expiration time of the URL, in Unix timestamp format (seconds). This parameter is valid when downloadUrl is not empty.
taskId String The ID of the archive task, which is returned when there are multiple segments. The value is 0 for a single segment (observed as the number 0).

Example

Request example

POST /uc-creport/api/v1/cdr/347642293061275648/recordings/segments/download HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJhcHBfa2V5Ijoic2xOdnQzaHc1NXB2Vm5HRlNhR2ZOVTNmMWxYQ3lpa08iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc5MjA4ODM1MSwiaWF0IjoxNzkyMDY2NzUxLCJqdGkiOiIzYjRmN2IxZC04ZWQyLTQzZTEtOTIyZC1kZmRhNjk4ZjQ2ZDgiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.OgeYovYZA5JEX-2F0VglvINizU6lzmE0EIpqSzWMb2PZa3XOBnAJjydZAVi-2_HJXQy1DDpZAkz3kcVlbOPQU8n0B9gfeHA-OPIxBWVeNTOZHO1BHHi_nMYDlNt59sRHO8pnYmakLbzrtA0qNF47jgPdNxm4yA_Jodhec-k-uT0xzpG_F0YugtZwcMIg9cujyWdqAs-lEohoYchO_WEMYENLOeQR966nspafFfxoKa-NafsEOyZX1igzWB9tX8nSgdQv_F4YqmUVXE7giTyUC9GmS_QzHymDJ9jbYZh8Ktp_bVoqFZfhd7WPVPR8HycGeX1dazgpH6Q8HBE6fsp2ZQ
x-tenant-code: colortest2
Content-Type: application/json
{}

Response example

HTTP/1.1 200 OK
{
  "requestId": "ba10603ef13b61eb6ac9658ff7ae32be",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "downloadUrl": "https://novo-one-tst-self-operated-business.s3.ap-east-1.amazonaws.com/commctl/colortest2/recording/colortest2/20260817151957-20260817151954ZAFHX-1000-1001-Queue-Internal.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20261015T121956Z&X-Amz-SignedHeaders=host&X-Amz-Credential=AKIA6ODU5BKBMSDIXP4N%2F20261015%2Fap-east-1%2Fs3%2Faws4_request&X-Amz-Expires=983&X-Amz-Signature=73025994bfd908b1703d1a5def177441936c1708a02eda3006762bc1510aa849",
    "expireAt": "1792067779",
    "taskId": "0"
  }
}