# List Workstreams Visible to the Caller

> Lists the workstreams you can see, so an accountant can find the right one to run or review. It needs no inputs, but you can narrow the list by authoring…

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

Lists the workstreams you can see, so an accountant can find the right one to run or review. It needs no inputs, but you can narrow the list by authoring scope or lifecycle status and page through it with a cursor. It returns one summary row per workstream with its id, permakey, name, execution mode and status, plus a total count.

Body parameters

scope enum

Limit to workstreams of this authoring scope.

plan user team firm gallery

status enum

Limit to workstreams with this lifecycle status.

draft active archived

limit integer · default 20

Maximum rows per page (1..100). Defaults to 20.

cursor string

Opaque pagination cursor from a previous response's `next_cursor`. Omit on the first call. The server treats the cursor as opaque — do not parse or construct it.

Returns

Skill executed successfully

skill string Required

Example workstream_list

output object Required

List of workstreams the caller can see, with cursor pagination.

output.stub_fields array of strings

output.warnings array of strings

output.error string

Safe refusal code, without target details.

output.items array of values

Page of workstreams matching the input filters.

output.next_cursor string

Pass back as `cursor` on the next call to get the following page. `None` when there are no more pages.

output.total integer

Total matching rows across all pages. `None` when the backend cannot count cheaply (very large datasets).

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

```
curl https://uk.heyarchie.com/api/v1/skills/workstream.list/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "scope": null,
       "status": null,
       "limit": 0,
       "cursor": null
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "workstream.list",
    scope=None,
    status=None,
    limit=0,
    cursor=None,
)
print(result)
```

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

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("workstream.list", {
  "scope": null,
  "status": null,
  "limit": 0,
  "cursor": null
});
console.log(result);
```

Response

```
{
  "skill": "workstream_list",
  "output": {
    "items": [
      {
        "description": "Monthly close checklist for Northwind Trading Ltd.",
        "execution_mode": "inline",
        "name": "Month-end close",
        "permakey": "k7m2p9x",
        "status": "active",
        "workstream_id": "5e9a1c73-2b6d-4f80-8d14-a7c3e0b92f65"
      }
    ],
    "total": 1
  },
  "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.
