Talk with Archie
API reference › WorkStreams
API reference › WorkStreams

Get the Current Status of a Workstream Run

POST/api/v1/skills/workstream.status/invoke
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.
Body parameters
cycle_idstring · uuid or stringRequired
The cycle id returned by workstream_run, or the 7-char permakey from a run_mentions payload.
Returns

Skill executed successfully

skillstringRequired
Example workstream_status
outputobjectRequired
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.

output.stub_fieldsarray of strings
output.warningsarray of strings
output.cycle_idstring · uuid
The cycle being inspected.
output.run_idstring · uuidDeprecated
output.statusenum · default pending
Lifecycle state of the cycle.
pendingrunningpausedawaiting_approvalcompletedcancelledfailed
output.current_stepstring · default
Slug of the currently-executing step (empty if not yet started).
output.next_stepstring
Slug of the next step the runtime will dispatch (None on terminal states).
output.progress_pctnumber · default 0
Approximate completion percentage (0..100).
output.errorstringDeprecated
output.error_envelope
Canonical structured error, code WORKSTREAM_RUN_FAILED, with the reason as its message and failed_step in its details. Set only when status == 'failed'.
output.failed_stepstring
Slug of the first step that failed, by step order. Set only when status == 'failed' and a step is recorded as failed.
output.reasonstring
Plain-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_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
curl https://uk.heyarchie.com/api/v1/skills/workstream.status/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "cycle_id": null
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "workstream.status",
    cycle_id=None,
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("workstream.status", {
  "cycle_id": null
});
console.log(result);
Response
{
  "skill": "workstream_status",
  "output": {
    "current_step": "reconcile_bank",
    "cycle_id": "b7d4e2a1-9c3f-4e58-a6b2-1f0d3c5e7a94",
    "next_step": "review_variances",
    "progress_pct": 40,
    "status": "running"
  },
  "correlation_id": "<string>"
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}

Every response also carries X-Request-ID. Quote it if you write to us about a call.