Query task list¶
Lists readable export tasks in the current workspace.
POST https://moi.matrixorigin.cn/newmoi/export/task/list
Preparation before calling¶
Prepare a personal access token and target workspace ID that has access to the target workspace.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: Target workspace ID, passed throughX-Workspace-IDHeader.
Request example¶
curl -X POST "https://moi.matrixorigin.cn/newmoi/export/task/list" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
}'
Request body¶
An empty object can be used to read the default list. The following filter and sort fields can also be passed in.
Field |
Type |
Is it required |
Description |
|---|---|---|---|
|
integer |
No |
This page returns the number of items; if not passed, it will be |
|
integer |
no |
Paging offset. |
|
string |
No |
Filter by target connector name. |
|
string |
No |
Filter by export task ID. |
|
string |
No |
Order field: |
|
string |
No |
Sorting direction: |
|
integer[] |
No |
Filter by task status. |
|
string |
No |
Filter by creator. |
[] after a type denotes an array. [] in a field path denotes each item in an array.
Successful response¶
Returns 200 on success. data.tasks is the list of tasks that can be read by the current identity, and data.total is the total number of tasks matching the filter conditions.
{
"code": "OK",
"msg": "OK",
"data": {
"tasks": [{
"id": "export-task-123",
"name": "export-to-s3",
"connector_name": "target-s3",
"type": 5,
"status": 1,
"export_source": [["volume-001", "reports", "summary.csv"]],
"create_time": "2026-08-18T10:00:00Z",
"end_time": null,
"fileSuccess": 3,
"fileFail": 1
}],
"total": 1
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object[] |
Export task list. |
|
string |
Task ID. |
|
string |
Task name. |
|
string |
Target connector name. |
|
integer |
Export target category: |
|
integer |
|
|
string[][] |
A collection of source file paths. |
|
string or null |
Creation time. |
|
string or null |
End time; |
|
integer |
The number of files that have been successfully exported. |
|
integer |
The number of files that failed to export. |
|
integer |
The total number of tasks matching the current filter conditions. |
Error response¶
Server-side business errors may be returned using HTTP 200 in this compatible interface.
{
"code": "ErrServer",
"msg": "Internal server error",
"data": null
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
— |
The request body cannot be parsed; this compatible path returns an |
Check pagination, status filtering and sorting field types. |
|
|
List query failed. |
Try again later; if it continues to fail, contact your administrator. |
|
|
The current identity does not have permission to read the export task. |
Request that read permission be granted to the export task. |
|
|
Authorization service is temporarily unavailable. |
Try again later. |
Follow-up operations¶
Save the ID of the target task, and then Query task details or Query task status.