Query automation task running details¶
Read the current status and generated output of an automated task running record.
GET https://moi.matrixorigin.cn/newmoi/workspaces/{workspace_id}/agent-automation-runs/{run_id}
Preparation before calling¶
Prepare to run the record ID, personal access token with access to the target workspace, and the target workspace ID.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: Target workspace ID, passed through theX-Workspace-IDHeader and also asworkspace_idin the path.$RUN_ID: The running record ID to be queried, asrun_idin the path.
Request example¶
curl "https://moi.matrixorigin.cn/newmoi/workspaces/$WORKSPACE_ID/agent-automation-runs/$RUN_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters¶
Parameters |
Type |
Is it required |
Description |
|---|---|---|---|
|
string |
Yes |
Workspace ID. |
|
string |
Yes |
Run record ID. |
Successful response¶
Returns 200 on success. When the run has produced output, it can contain final_text, structured_output, artifact_refs, or error.
{
"code": 0,
"data": {
"id": "run_01",
"workspace_id": "ws_01",
"automation_task_id": "task_01",
"automation_task_version": 1,
"trigger_type": "manual",
"trigger_config_snapshot": {
"mode": "cron"
},
"status": "running",
"created_at": "2026-08-18T04:00:00Z",
"updated_at": "2026-08-18T04:00:00Z"
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
string |
Run, workspace, and automation task identifiers. |
|
string |
Run, workspace, and automation task identifiers. |
|
string |
Run, workspace, and automation task identifiers. |
|
integer |
The task version used to create this runtime. |
|
string |
This trigger type and trigger configuration snapshot. |
|
object |
This trigger type and trigger configuration snapshot. |
|
string |
Running status. |
|
string |
The generated final text, structured output, and product reference; not returned if not generated. |
|
object |
The generated final text, structured output, and product reference; not returned if not generated. |
|
array |
The generated final text, structured output, and product references; not returned if not generated. |
|
object |
Failure details; can be returned when the operation fails. |
|
string |
Running time point, using RFC 3339 format; fields that have not reached the corresponding stage will not be returned. |
|
string |
Running time point, using RFC 3339 format; fields that have not reached the corresponding stage will not be returned. |
|
string |
Running time point, using RFC 3339 format; fields that have not reached the corresponding stage will not be returned. |
|
string |
Running time point, using RFC 3339 format; fields that have not reached the corresponding stage will not be returned. |
Error response¶
{
"code": 3,
"message": "<错误信息>"
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
The path parameter is invalid. |
Check workspace and run ID. |
|
|
Lack of valid identity credentials. |
Check API Key. |
|
|
The running record does not exist. |
Query the running list first. |
|
|
The automated task service is unavailable. |
Try again later. |
Follow-up operations¶
After the operation enters the final state, Query the results of automated task execution; when process information is needed, Query automation task running events.