List Templates Api V1 Workstreams Templates Get
get
/api/v1/workstreams/templatesList workflow templates
Lists the workflow templates the caller can see in their workspace, filtered by
category, search text, status and scope, and returns one page of templates with
run counts and pagination.
Templates are reusable workflow definitions that can be customized into
blueprints for specific clients.
**Query Parameters:**
- `category`: Filter by template category
- `status`: Filter by template status (default: active)
- `limit`: Results per page (1-500, default: 20)
- `offset`: Pagination offset (default: 0)
**Authentication Required:** JWT Bearer token
Query parameters
categoryquery | Filter by category |
searchquery | Search by name or description |
runnable_onlyquery | Only include templates with at least one active linked blueprint |
launchable_onlyquery | Only include LAUNCHABLE recipes β workstreams with a step DAG (non-empty `steps`) or an agentic `goal_spec`. Excludes agentic CONTAINERS (the per-job and ad-hoc workstreams, which have neither and are run via /jobs/{id}/run, not @-mention). Note: `is_template` is NOT the launchability signal β the FIC catalogue and firm recipes ship `is_template=false` but are launchable. |
is_templatequery | Optional filter on the `is_template` column. Default: include BOTH template and non-template workstreams. Pass `true` to restrict to flagged templates (legacy behaviour); pass `false` to restrict to non-template workstreams. |
statusquery | Filter by statusdraftactivepausedarchived |
include_all_statusesquery | Return EVERY status instead of just `?status=`. For a surface that does its own status filtering client-side β the 'My WorkStreams' list, whose Live/Drafts/Archived chips filter and COUNT over one fetched set. Default False so the @-mention picker keeps seeing only active rows. |
include_all_workspacesquery | god-mode ONLY: include workstreams from ALL workspaces (the WSS Trace/Studio cross-workspace view). Default False so the @-mention launcher picker stays scoped to the caller's workspace β it must never surface templates the caller can't launch here. |
include_internalquery | Include engineering/test 'plumbing' rows in the result. Default False β the recipe LIBRARY hides the internal bucket (FIC:/Demo:/Read PDF rows + the 'internal' catch-all category) so the customer-facing grid shows only curated catalog + real recipes. Pass True for the @-mention picker / eng tooling that needs them. |
run_once_onlyquery | Only the WorkStreams Run once can run and a firm wants offered: the caller's workspace only (never the catalogue, also for god mode), steps, inline, active or draft, without plumbing or test rows. Replaces the single-status and internal-hiding filters for this call. The @ menu sends it after `/run`. |
scopequery | Filter by distribution scope β the customer 'My WorkStreams' view is grouped firm -> team -> user (#170). When set, the firm-scoped FIC workstreams become visible (the default grid's FIC name-hide is skipped for an explicit scope view); eng plumbing stays hidden. Omit for the default catalog grid. `gallery`/`plan` scopes are not filter options (gallery is parked). |
limitquery | Results per page, from 1 to 500; defaults to 20. |
offsetquery | Pagination offset |
Responses
200Templates retrieved successfully
| Field | Type | Description |
|---|---|---|
items | TemplateResponse[] | βitem shape |
paginationrequired | Pagination | Pagination informationshow nested |
unreadable | UnreadableTemplate[] | Matching workstreams whose stored data could not be read. They are left out of items but still counted in pagination.total.item shape |
401Unauthorized - invalid or missing JWT token
422Validation Error
| Field | Type | Description |
|---|---|---|
detail | ValidationError[] | βitem shape |
curl https://api.dev.arch.ie/api/v1/workstreams/templates \
-H "Authorization: Bearer sk_..."