# Get the Current Status of a Workstream Run

> 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…

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_id string · uuid or string Required

The cycle id returned by workstream_run, or the 7-char permakey from a run_mentions payload.

Returns

Skill executed successfully

skill string Required

Example workstream_status

output object Required

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_fields array of strings

output.warnings array of strings

output.cycle_id string · uuid

The cycle being inspected.

output.run_id string · uuid Deprecated

output.status enum · default pending

Lifecycle state of the cycle.

pending running paused awaiting_approval completed cancelled failed

output.current_step string · default

Slug of the currently-executing step (empty if not yet started).

output.next_step string

Slug of the next step the runtime will dispatch (None on terminal states).

output.progress_pct number · default 0

Approximate completion percentage (0..100).

output.error string Deprecated

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_step string

Slug of the first step that failed, by step order. Set only when `status == 'failed'` and a step is recorded as failed.

output.reason string

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_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← Start a Workstream Run](https://heyarchie.com/en-gb/developers/api-reference/workstreams/start-a-workstream-run/)[Next Update a Workstream's Metadata →](https://heyarchie.com/en-gb/developers/api-reference/workstreams/update-a-workstreams-metadata/)

```
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>"
  }
}
```

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