Query Recording Download Tasks

Queries the unconfirmed recording download tasks of the current user.

Request URL

GET {base_url}/uc-creport/api/v1/recordings/download/tasks

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.

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<Task_List_Result> The list of unconfirmed recording download tasks.
Task_List_Result
Parameter Type Description
tasks Array<Recording_Task> The list of unconfirmed recording download tasks.
Recording_Task
Parameter Type Description
taskId String The ID of the task.
taskType String

The type of the task:

  • recording_batch_download: Batch download of recordings.
  • recording_segment_download: Segment download of CDR recordings.
status String

The status of the task:

  • pending: The task is waiting to be processed.
  • processing: The task is being processed.
  • success: The task succeeded.
  • failed: The task failed.
message String The result message of the task, which contains error information when the task fails.
resourceId String The resource ID, which is available after the task succeeds.
createdAt String The creation time of the task, in Unix timestamp format (milliseconds).
updatedAt String The last update time of the task, in Unix timestamp format (milliseconds).
resourceExpired Boolean Whether the result file has expired. An expired file cannot be downloaded and the download must be initiated again.
resourceExpireAt String The expiration time of the result file, in Unix timestamp format (milliseconds). The value 0 indicates that the file never expires.

Example

Request example

GET /uc-creport/api/v1/recordings/download/tasks 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

Response example

HTTP/1.1 200 OK
{
  "requestId": "af2704a0863fd9ff7f056fc645f9ac83",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "tasks": [
      {
        "taskId": "369097318632419328",
        "taskType": "recording_batch_download",
        "status": "success",
        "message": "",
        "resourceId": "2110707514686394369",
        "createdAt": "1792066858258",
        "updatedAt": "1792066863",
        "resourceExpired": false,
        "resourceExpireAt": "1792070458258"
      }
    ]
  }
}