Get workspace export task statistics¶
Read total, pending, running, and failed export-task counts in the current workspace.
GET https://api.moi.matrixorigin.cn/v5/export/task/stats
Before you call this API¶
Prepare current Workspace credentials and resource privileges. See Shared information for variables, import files, and operation boundaries.
Request example¶
curl -X GET "https://api.moi.matrixorigin.cn/v5/export/task/stats" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
No task ID, list filters, or pagination parameters. Counts group by task state and exclude records whose lifecycle is not ready or is deleting. total includes completed tasks, so it need not equal pending+running+failed. This current snapshot does not replace checking individual task states, failed files, or target data.
No query parameters; select the workspace through headers.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"total": 22,
"running": 10,
"pending": 6,
"failed": 4
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
OK on success. |
|
string |
Response information. |
|
object |
Current operation result. Single-object imports return a knowledge base object directly. |
|
integer |
Total tasks in current scope, including completed tasks. |
|
integer |
Running task count. |
|
integer |
Pending task count. |
|
integer |
Failed task count. |
Error response¶
Check HTTP status, business code, and target resources separately. Retain request information and read again according to Errors and environments.