Query Unconfirmed CDR Export Tasks
Queries the list of unconfirmed CDR export tasks.
Request URL
GET {base_url}/uc-creport/api/v1/cdr/export/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.
|
| 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 the export tasks. |
- Task_List_Result
-
Parameter Type Description tasks Array<Export_Task_Info> The list of unconfirmed export tasks.
- Export_Task_Info
-
Parameter Type Description id String The ID of the task. taskType String The type of the task. status String The status of the task:
pendingprocessingsuccessfailed
message String The message of the task, which is the success prompt or the failure reason. resourceId String The ID of the exported file resource. This parameter is available after the task succeeds. createdAt String The time when the task was created, in Unix timestamp format (milliseconds). updatedAt String The time when the task was last updated, in Unix timestamp format (seconds). resourceExpired Boolean Whether the exported file resource has expired.
true: The resource has expired and cannot be downloaded.false: The resource has not expired.
resourceExpireAt String The expiration time of the exported file resource, in Unix timestamp format (milliseconds). The value 0 indicates that the file never expires.
Example
Request example
GET /uc-creport/api/v1/cdr/export/tasks HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MzM1NTUwMiwiaWF0IjoxNzkzMzMzOTAyLCJqdGkiOiIxMGQwNGYwYy0yMTIxLTRiMzktYjFlZC1kNDY5MDY0ODlhODQiLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6IjlkMTg5NjI3LTZhZTAtNDYxMC04ZTFhLWNiZWJmYzdlYTdmZiIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.cpY9aTg-Twaa1itEHREfJRX2RaYmalfGeof0An6DYSYBl9moSYvsjsZwImpId5xKb1qsPsec0KSXTmASV9kMgonf1uv6AtNRw702SroZxYTHwA9_lwxM8TY66aOAyoeiewHhA0sCDtg-ZGiDaatHxSitiLMi4MMr8qyzvuXF_44bcucYSaf8Z7Iokiud9cM67Z4dAFdxQ_SSbmFtAmTa78VuSPA0R7fFyq86Fn-p6Xk767i0AXJI8a7H7GNKMPwuc5NJ3BtWcbWx8M_DKKNVO58wMO2d9_Q13-qjlmX44h0ml_GqtqSqkZS7wz3Bg2jPT3Q2yc7Ijm9rxqr1UvbGLg
x-tenant-code: jint
Response example
HTTP/1.1 200 OK { "requestId": "0b8cc6619637e0d8d57c0b369f876dfb", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "tasks": [ { "id": "374411691270496256", "taskType": "cdr_export", "status": "processing", "message": "", "resourceId": "", "createdAt": "1793333903431", "updatedAt": "1793333903", "resourceExpired": false, "resourceExpireAt": "0" }, { "id": "374410807539032064", "taskType": "cdr_export", "status": "success", "message": "CDR-export-20261030121452-ntLeHRIiqSXRnPg5.csv", "resourceId": "2116020991266721794", "createdAt": "1793333692733", "updatedAt": "1793333692", "resourceExpired": false, "resourceExpireAt": "1793337292901" } ] } }
Note:
The response is condensed. The array contains 2 items in this example.