Get import task statistics

Return import task statistics visible to the caller in the current workspace. Results include the total task count and counts by state, without reading individual task details.

GET https://api.moi.matrixorigin.cn/v5/task/stats

Before you call this API

Prepare a Personal access token with access to the target workspace and the Target workspace ID.

Request parameters

Replace $AI_STUDIO_API_KEY and $WORKSPACE_ID with actual values.

curl "https://api.moi.matrixorigin.cn/v5/task/stats" \
  -H "X-API-Key: $AI_STUDIO_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

This API has no path or query parameters.

Successful response

{
  "total": 22,
  "running": 10,
  "waiting": 8,
  "failed": 4
}

Field

Type

Description

data.total

integer

Total import tasks visible to the current caller.

data.running

integer

Number of running tasks.

data.waiting

integer

Number of tasks waiting for processing, including paused tasks.

data.failed

integer

Number of failed tasks.

Last updated on