Get workflow details¶
Reads a workflow definition, runtime configuration, and current status.
GET https://moi.matrixorigin.cn/newmoi/workflow/v2/workflow-apps/{workflow_id}
Before you call¶
Use List workflows to find the workflow. Prepare a personal access token with workflow read permission and the target workspace ID.
Path parameters¶
Replace $AI_STUDIO_API_KEY, $WORKSPACE_ID, and $WORKFLOW_ID with your own values.
curl "https://moi.matrixorigin.cn/newmoi/workflow/v2/workflow-apps/$WORKFLOW_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Workflow ID to read. |
Successful response¶
Returns 200 and the current saved workflow definition and configuration.
{
"code": "OK",
"msg": "OK",
"data": {
"workflow": {
"id": "wf-001",
"name": "daily-import",
"description": "Imports daily files",
"source_type": "manual_dsl",
"status": "ready",
"available_actions": ["update", "delete", "run", "pause"],
"execution_mode": "cron",
"cron_expression": "0 2 * * *",
"dsl_yaml": "workflow:\\n name: daily-import\\n root: main\\nroot:\\n chain: []\\n",
"default_values": {},
"latest_workflow_version_id": "ver-001",
"latest_version": 3,
"execution_summary": {"total_executions": 8, "active_executions": 0},
"trigger_summary": {"mode": "cron", "configured": true, "enabled": true},
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T11:00:00Z"
}
}
}
The following fields are in data.workflow.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
Workflow detail. |
|
string |
Workflow ID. |
|
string |
Workflow name. |
|
string |
Workflow description, when set. |
|
string |
Workflow source type. |
|
string |
Current status. |
|
string[] |
Actions allowed in the current state. |
|
string |
Configured execution mode. |
|
string |
Cron expression for scheduled workflows. |
|
string |
Workflow goal, when provided. |
|
string |
Planner model, when provided. |
|
string |
Draft ID, when provided. |
|
string |
Workflow session ID, when provided. |
|
string |
Candidate ID, when provided. |
Field |
Type |
Description |
|---|---|---|
|
string |
Workflow DSL YAML. |
|
object |
Runtime context, when provided. |
|
object |
Runtime input form, when configured. |
|
object |
Runtime input layout, when configured. |
|
object |
Runtime input default values, when configured. |
|
object |
Workflow design graph, when configured. |
Field |
Type |
Description |
|---|---|---|
|
string |
Workflow definition ID, when provided. |
|
string |
Latest workflow version ID, when provided. |
|
integer |
Latest workflow version number, when provided. |
|
string |
Latest workflow version status, when provided. |
|
object |
Execution summary. |
|
integer |
Total executions. |
|
integer |
Active executions. |
|
string |
Active execution ID, when any. |
|
string |
Active execution status, when any. |
|
string |
Latest execution ID, when any. |
|
string |
Latest execution status, when any. |
|
string |
Latest execution time, when any. |
|
object |
Trigger summary. |
|
string |
Trigger mode. |
|
boolean |
Whether a trigger is configured. |
|
boolean |
Whether the trigger is enabled. |
|
integer |
Volume ID for volume triggers. |
|
string |
Cron expression for scheduled workflows. |
|
string |
Service name for dynamic services. |
Field |
Type |
Description |
|---|---|---|
|
string |
Workflow-level compute resource ID, when associated. |
|
object[] |
Workflow-level or node-level resource bindings. |
|
string |
Compute resource ID. |
|
string |
Compute resource name, when provided. |
|
boolean |
Whether this is a workflow-level binding. |
|
string[] |
Names of nodes using the binding. |
|
string |
Creation time, when provided. |
|
string |
Last update time, when provided. |
Error response¶
{"code": "ErrNotFound", "msg": "Resource not found", "data": null}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code. |
|
string |
Error message. |
|
null |
Empty on error. |
Next steps¶
Keep data.workflow.id. Use Update workflow to change it or Start a workflow job to run it.