Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Workstream Status

post/api/v1/skills/workstream.status/invoke

Get 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

FieldTypeDescription
cycle_idrequiredstring (uuid) | stringThe cycle id returned by workstream_run, or the 7-char permakey from a run_mentions payload.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectCurrent 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
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
cycle_idstring (uuid) | nullThe cycle being inspected.
run_idstring (uuid) | nullβ€”
status"pending" | "running" | "paused" | "awaiting_approval" | "completed" | "cancelled" | "failed"Lifecycle state of the cycle.
pendingrunningpausedawaiting_approvalcompletedcancelledfailed
current_stepstringSlug of the currently-executing step (empty if not yet started).
next_stepstring | nullSlug of the next step the runtime will dispatch (None on terminal states).
progress_pctnumberApproximate completion percentage (0..100).
errorstring | nullβ€”
error_envelopeany | nullCanonical structured error, code `WORKSTREAM_RUN_FAILED`, with the `reason` as its message and `failed_step` in its details. Set only when `status == 'failed'`.
failed_stepstring | nullSlug of the first step that failed, by step order. Set only when `status == 'failed'` and a step is recorded as failed.
reasonstring | nullPlain-language reason the run stopped, the same sentence the run page shows, with ids, file paths and secrets removed. Never empty when `status == 'failed'`; null otherwise.
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
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
     }'
API Reference Β· Archie for developers