# Describe a Workstream by Id, Slug, or Permakey

> Shows the full definition of one workstream, so an accountant can check what it does before running it. It needs the workstream_id, which can be a UUID…

POST /api/v1/skills/workstream.describe/invoke

Shows the full definition of one workstream, so an accountant can check what it does before running it. It needs the workstream_id, which can be a UUID, a slug or the seven-character permakey. It returns the name, status and execution mode, the inputs a run needs and the number of steps.

Body parameters

workstream_id string Required

UUID, slug, or 7-char permakey. The adapter resolves it.

Example 7f3c8d9e-1a2b-4c5d-8e6f-901234567890

Returns

Skill executed successfully

skill string Required

Example workstream_describe

output object Required

Full definition of a workstream — metadata + step graph.

output.stub_fields array of strings

output.warnings array of strings

output.workstream_id string · uuid

Stable internal id.

output.permakey string · default

7-char human-friendly id.

output.name string · default

Display name.

output.description string

One-paragraph overview.

output.execution_mode enum · default inline

`inline` (Temporal declarative) or `containerized` (Fly.io agentic).

inline containerized

output.status enum · default draft

Lifecycle state.

draft active archived

output.step_count integer · default 0

Number of declared steps in the workstream graph.

output.inputs_required array of objects

Declaration of every input the caller can or must supply via `runtime_vars` when starting a cycle. Each entry follows the `WorkstreamInputSpec` shape (name, type, required, description, default) but is wire-typed as a JSON object for backward compatibility with stored authoring metadata. Empty for client-agnostic workstreams that take no runtime inputs.

output.error string Deprecated

output.error_envelope

Canonical structured error. Set when describe failed (e.g. workstream not found, FGA denied). The legacy `error` string field is populated alongside it for back-compat.

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 ← Delete a Workstream](https://heyarchie.com/en-gb/developers/api-reference/workstreams/delete-a-workstream/)[Next Duplicate a Workstream →](https://heyarchie.com/en-gb/developers/api-reference/workstreams/duplicate-a-workstream/)

```
curl https://uk.heyarchie.com/api/v1/skills/workstream.describe/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "workstream_id": "7f3c8d9e-1a2b-4c5d-8e6f-901234567890"
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "workstream.describe",
    workstream_id="7f3c8d9e-1a2b-4c5d-8e6f-901234567890",
)
print(result)
```

```
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("workstream.describe", {
  "workstream_id": "7f3c8d9e-1a2b-4c5d-8e6f-901234567890"
});
console.log(result);
```

Response

```
{
  "skill": "workstream_describe",
  "output": {
    "description": "Monthly close checklist for Northwind Trading Ltd.",
    "execution_mode": "inline",
    "inputs_required": [
      {
        "description": "Month to close, as YYYY-MM.",
        "name": "period",
        "required": true,
        "type": "string"
      }
    ],
    "name": "Month-end close",
    "permakey": "k7m2p9x",
    "status": "active",
    "step_count": 6,
    "workstream_id": "5e9a1c73-2b6d-4f80-8d14-a7c3e0b92f65"
  },
  "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.
