List workflows¶
Lists workflows that the caller can read. Filter by source, status, execution mode, or name.
GET https://moi.matrixorigin.cn/newmoi/workflow/v2/workflow-apps
Before you call¶
Prepare a personal access token with workflow read permission and the target workspace ID.
Query parameters¶
Replace $AI_STUDIO_API_KEY, $WORKSPACE_ID, and the query values in the examples with your own values.
curl "https://moi.matrixorigin.cn/newmoi/workflow/v2/workflow-apps?offset=0&limit=20" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
curl "https://moi.matrixorigin.cn/newmoi/workflow/v2/workflow-apps?offset=20&limit=20&status=ready" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
Starting position in the result list. |
|
integer |
No |
Maximum number of results to return. |
|
string |
No |
Filters by workflow source type. |
|
string |
No |
Filters by current workflow status. |
|
string |
No |
Filters by execution mode. |
|
string |
No |
Searches workflow names. |
|
boolean |
No |
Includes dynamic service workflows. |
Successful response¶
Returns 200 and a page of workflow summaries with the matching total. Increase offset until the number of read items reaches the total.
{
"code": "OK",
"msg": "OK",
"data": {
"total": 1,
"workflows": [
{
"id": "wf-001",
"name": "daily-import",
"source_type": "manual_dsl",
"status": "ready",
"available_actions": ["update", "delete", "run", "pause"],
"execution_mode": "cron",
"cron_expression": "0 2 * * *",
"latest_workflow_version_id": "ver-001",
"latest_version": 3,
"parameter_summary": {
"status": "valid",
"total_fields": 1,
"required_fields": 0,
"filled_required_fields": 0,
"missing_required_fields": 0
},
"execution_summary": {
"total_executions": 8,
"active_executions": 0,
"latest_execution_id": "run-008",
"latest_execution_status": "completed"
},
"trigger_summary": {
"mode": "cron",
"configured": true,
"enabled": true,
"cron_expression": "0 2 * * *"
},
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T11:00:00Z"
}
]
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
integer |
Total workflows matching the filters. |
|
object[] |
Workflow summary list. |
The following fields are in each data.workflows[] item.
Field |
Type |
Description |
|---|---|---|
|
string |
Workflow ID. |
|
string |
Workflow name. |
|
string |
Workflow description, when set. |
|
string |
Workflow source type. |
|
string |
Current workflow status. |
|
string[] |
Actions allowed in the current state. Read again before calling an action. |
|
string |
Configured execution mode. |
|
string |
Cron expression for scheduled workflows. |
|
string |
Draft ID, when provided. |
|
string |
Candidate ID, when provided. |
|
string |
Latest workflow version ID, when provided. |
|
integer |
Latest workflow version number, when provided. |
|
string |
Latest workflow version status, when provided. |
|
string |
Workflow-level compute resource ID, when associated. |
|
string |
Creation time, when provided. |
|
string |
Last update time, when provided. |
Field |
Type |
Description |
|---|---|---|
|
object |
Runtime parameter validation summary. |
|
string |
Parameter validation status. |
|
integer |
Total parameters. |
|
integer |
Required parameters. |
|
integer |
Required parameters that have values. |
|
integer |
Missing required parameters. |
|
string[] |
Missing parameter IDs, when any. |
|
string[] |
Missing parameter labels, when any. |
|
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. |
Field |
Type |
Description |
|---|---|---|
|
object |
Trigger summary. |
|
string |
Trigger mode. |
|
boolean |
Whether the trigger is configured. |
|
boolean |
Whether the trigger is enabled. |
|
integer |
Associated volume ID for volume triggers. |
|
string |
Cron expression for scheduled workflows. |
|
string |
Service name for dynamic services. |
|
object[] |
Workflow-level or node-level compute 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. |
[] in a field path means each array item. For example, compute_resource_bindings[].id is the id field in each compute_resource_bindings item.
Error response¶
{
"code": "ErrParamInvalid",
"msg": "Invalid request parameter",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code. |
|
string |
Error message. |
|
null |
Empty on error. |
Next steps¶
Keep each workflow id. Use Get workflow details for the full definition or Update workflow to change it.