Invoke Skill Workstream Advance
post
/api/v1/skills/workstream.advance/invokeAdvance a paused or awaiting-approval workstream run β approve a task, skip a step, pause, or resume. This is the supervisory surface; for starting a new run use workstream_run, for cancelling use workstream_cancel.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
cycle_idrequired | string (uuid) | The cycle to advance. |
actionrequired | "approve_task" | "skip_step" | "pause" | "resume" | What to do:
- `approve_task`: mark the task in `task_id` approved; the run moves on.
- `skip_step`: skip the current step.
- `pause`: halt the run in-place.
- `resume`: continue a previously paused run.approve_taskskip_steppauseresume |
task_id | string (uuid) | null | Required for `approve_task`. The task being approved. |
reason | string | null | Audit trail. Recommended for skip_step. |
idempotency_key | string | null | Caller-supplied stable token. Replaying within 24h returns the same outcome rather than re-applying the action. |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||||||||||||||
outputrequired | object | Cycle state after the action lands.show nested
| ||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/workstream.advance/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"cycle_id": "00000000-0000-0000-0000-000000000000",
"action": "approve_task",
"task_id": null,
"reason": null,
"idempotency_key": null
}'