Bulk Download Recordings

Downloads multiple recordings in one request. The recordings are archived as an asynchronous task, and the download URL is returned immediately when the archive cache is hit.

Request URL

POST {base_url}/uc-creport/api/v1/recordings/batch-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.
Body parameters
Parameter Required Type Description
ids Yes Array<String> The list of IDs of the recordings to download, supporting 1 to 100 recordings. You can obtain the IDs 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<Batch_Download_Result> The result of the batch download request.
Batch_Download_Result
Parameter Type Description
taskId String The ID of the archive task.
downloadUrl String The download URL of the batch download result. This parameter is returned immediately when the archive cache is hit, and is empty otherwise.
expireAt String The expiration time of the URL, in Unix timestamp format (seconds). This parameter is valid when downloadUrl is not empty.

Example

Request example

POST /uc-creport/api/v1/recordings/batch-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
{
  "ids": [
    "347642307762311168",
    "347638743665070080"
  ]
}

Response example

HTTP/1.1 200 OK
{
  "requestId": "3fa4a4d09094de9fb40800940ab6364c",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "taskId": "369097318632419328",
    "downloadUrl": "",
    "expireAt": "0"
  }
}