Query Task List
Retrieve the current user's unconfirmed asynchronous tasks, including tasks for importing, clearing, and exporting contacts, as well as Bloom filter rebuild tasks (scheduled automatically by the system each day).
Request URL
POST {base_url}/uc-ccontact/api/v1/tasks/list
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 taskTypes No Array<Integer> The task types to query.
Valid value:
1: Company contact import.2: Personal contact import.3: Company contact clear.4: Personal contact clear.5: Company contact export.6: Personal contact export.7: Bloom filter rebuild (internal scheduled task).
Note: If this parameter is not provided, tasks of all types are returned.
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> | The list of tasks. |
- Task_List
-
Parameter Type Description items Array<Task> The list of tasks.
- Task
-
Parameter Type Description taskId String The ID of the task. taskType String The type of the task.
TASK_TYPE_COMPANY_CONTACTS_IMPORT: Company contact import.TASK_TYPE_PERSONAL_CONTACTS_IMPORT: Personal contact import.TASK_TYPE_CLEAR_COMPANY_CONTACTS: Company contact clear.TASK_TYPE_CLEAR_PERSONAL_CONTACTS: Personal contact clear.TASK_TYPE_COMPANY_CONTACTS_EXPORT: Company contact export.TASK_TYPE_PERSONAL_CONTACTS_EXPORT: Personal contact export.TASK_TYPE_BLOOM_REBUILD: Bloom filter rebuild (internal scheduled task).
updatedAt String The time when the task was last updated, in Unix timestamp format (milliseconds). content String The task content in JSON format. status String The status of the task.
PENDINGPARSINGPARSE_FAILEDPROCESSINGSUCCESSFAILED
message String The result message of the task.
Example
Request example
POST /uc-ccontact/api/v1/tasks/list HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.e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es": [
5,
6
]
}
Response example
HTTP/1.1 200 OK { "requestId": "05f5712aae26dc9b65d796370713c14e", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "items": [ { "taskId": "367226525605842944", "taskType": "TASK_TYPE_PERSONAL_CONTACTS_EXPORT", "updatedAt": "1791620826587", "content": "{\"task_created_at\":1791620826443,\"query\":\"zz\",\"sort_field\":\"\",\"sort_order\":\"\",\"exclude_ids\":null,\"resource_id\":2108836709354287106,\"file_name\":\"personal-contact-export-20261010162706-6d9e.csv\"}", "status": "SUCCESS", "message": "success" }, { "taskId": "366859313485336576", "taskType": "TASK_TYPE_COMPANY_CONTACTS_EXPORT", "updatedAt": "1791533276396", "content": "{\"task_created_at\":1791533276251,\"query\":\"zz\",\"sort_field\":\"\",\"sort_order\":\"\",\"exclude_ids\":null,\"resource_id\":2108469497233780738,\"file_name\":\"company-contact-export-20261009160756-f2e4.csv\"}", "status": "SUCCESS", "message": "success" } ] } }