Talk with Archie
API reference › WorkStreams
API reference › WorkStreams

List Workstreams Visible to the Caller

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
scopeenum
Limit to workstreams of this authoring scope.
planuserteamfirmgallery
statusenum
Limit to workstreams with this lifecycle status.
draftactivearchived
limitinteger · default 20
Maximum rows per page (1..100). Defaults to 20.
cursorstring
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

skillstringRequired
Example workstream_list
outputobjectRequired
List of workstreams the caller can see, with cursor pagination.
output.stub_fieldsarray of strings
output.warningsarray of strings
output.errorstring
Safe refusal code, without target details.
output.itemsarray of values
Page of workstreams matching the input filters.
output.next_cursorstring
Pass back as cursor on the next call to get the following page. None when there are no more pages.
output.totalinteger
Total matching rows across all pages. None when the backend cannot count cheaply (very large datasets).
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.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>"
  }
}
{
  "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.