Invoke Skill Workstream Status
post
/api/v1/skills/workstream.status/invokeGet the current status of a workstream run β overall lifecycle state plus current/next step pointers and progress percentage. For live progress streaming, use the events_url returned by workstream_run instead.
Reports where a workstream cycle has got to, so an accountant can check progress without opening the workstream. It needs the cycle_id returned when the cycle was started, or its seven-character permakey. It returns the status of the cycle, its current and next step and an approximate percentage complete.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
cycle_idrequired | string (uuid) | string | The cycle id returned by workstream_run, or the 7-char permakey from a run_mentions payload. |
Responses
200Skill executed successfully
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | |||||||||||||||||||||||||||||||||||||||
outputrequired | object | Current cycle state β overall + per-step.
Emits both ``cycle_id`` (canonical) and ``run_id`` (deprecated alias,
populated alongside ``cycle_id``) for backwards compat.
``error_envelope``, ``reason`` and ``failed_step`` are set together and only
when ``status == "failed"``; otherwise all three are null. ``failed_step`` is
the slug of the first failed step, ``reason`` is the run page's own sentence
for why it stopped (private values removed), and ``error_envelope`` carries
the same sentence under the code ``WORKSTREAM_RUN_FAILED``.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.status/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"cycle_id": null
}'