List the sub-workflow groups of a workflow.
GET/api/v1/workflows/{workflow_id}/spawn-groupsworkflows:read
The groups its Sub Workflow steps started, as the Inbox's Sub-workflows panel shows them: each with its step, status, child_counts by status, deadline, the step's entries, and can_be_managed_by_caller. Ordered by workflow_item_id, then started_at (oldest first); no other order is offered. Needs View Workflow Spawn Groups and a workflow you can see; empty while the company has no groups. get_workflow's items say which item a group belongs to.
| Scope | workflows:read |
| Asynchronous | No |
| MCP tool | list_workflow_spawn_groups |
| Portal permissions | view_workflow_spawn_groups |
| Paging | keyset |
| Default order | workflow_item_id,started_at |
| Sort fields | workflow_item_id, started_at, spawn_group_id |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
items | array of SpawnGroup | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.
| Code | Status |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
cursor_expired | 410 |
wrong_region | 421 |
invalid_cursor | 422 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
Schemas
SpawnEntry
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Required | |
spawn_entry_id | string | Required |
SpawnGroup
| Field | Type | Required | Description |
|---|---|---|---|
attempt | integer | Required | Which run of the step on the item this group is, from 1. ≥ -2147483648; ≤ 2147483647 |
can_be_managed_by_caller | boolean | Required | The caller starts the parent, or holds Manage Other Users Workflow Spawn Groups: they may cancel, force-complete and Proceed now, each with its own permission. |
can_children_be_opened_by_caller | boolean | Required | The caller may open any child: they may manage the group, or hold View All Workflows. |
child_counts | SpawnGroupChildCounts | Required | |
collect_node_run_id | string or null | Required | The Collect step's run while it waits for the group or runs a pass; null otherwise. |
completed_at | string (date-time) or null | Required | When the group was completed or cancelled; null while it is not. |
deadline_at | string (date-time) or null | Required | When the group's children time out; null without a deadline. |
entries | array of SpawnEntry or null | Required | The step's entries by spawn_entry_id; null when the step's settings cannot be read (the step was deleted, or its settings were edited and no longer parse). |
expected_count | integer or null | Required | How many children the group plans; null until planned. |
has_collect_arrived | boolean | Required | The group is bound to its Collect step: the step has arrived on the parent item. |
spawn_group_id | string | Required | |
spawn_node_id | string | Required | The Sub Workflow step (its node_id) that started the group. |
spawn_node_label | string or null | Required | The step's label; null when the step was deleted from the template. |
started_at | string (date-time) or null | Required | When the group was opened. |
status | string | Required | planning, spawning, open, collecting, collected, completed or cancelled (open enum). Force-complete takes a group that is planning, spawning or open; Proceed now only one that is open. |
workflow_id | string | Required | The parent workflow. |
workflow_item_id | string | Required | The parent's item the Sub Workflow step ran on. |
SpawnGroupChildCounts
| Field | Type | Required | Description |
|---|---|---|---|
cancelled | integer | Required | ≥ -2147483648; ≤ 2147483647 |
completed | integer | Required | ≥ -2147483648; ≤ 2147483647 |
completed_late | integer | Required | ≥ -2147483648; ≤ 2147483647 |
failed | integer | Required | ≥ -2147483648; ≤ 2147483647 |
pending | integer | Required | ≥ -2147483648; ≤ 2147483647 |
running | integer | Required | ≥ -2147483648; ≤ 2147483647 |
starting | integer | Required | ≥ -2147483648; ≤ 2147483647 |
timed_out | integer | Required | ≥ -2147483648; ≤ 2147483647 |