`GET /api/scripts/board` — one server-paginated, language-filtered page of the scripts board plus the total + the per-language facets.
const url = 'https://example.com/api/scripts/board';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/scripts/boardParameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Language tab: typescript / javascript / python (else all).
Last-run-status facet chip: keep only scripts whose latest standalone run has this status.
Free-text search over the script name + description.
Whitelisted sort column: name | language | created_at |
updated_at | ref_count | last_run_at. Default name.
asc | desc (default asc — the board is name-sorted A-Z).
Recompute the per-language facets (default true). The board sends false
for a tab/page change (the counts depend only on the workspace).
Responses
Section titled “Responses”GET /api/scripts/board body — one page of scripts + total + facets.
object
Per-language NavTab/chip counts over the whole workspace (the all-tab total
- the TS/JS/PY counts), independent of the active tab.
object
Script counts by their latest standalone run’s status (the last-run-status facet).
One filter-chip value and its count. Counts are workspace-wide (independent of the active filter — the chip totals do not shift as the user filters).
object
How many rows fall in this bucket.
The bucket value (e.g. a scope, a role, a framework).
Lightweight list-row view — drops source so a workspace with hundreds
of scripts does not balloon the list-API payload. The detail GET still
returns the full ScriptView with the source.
object
#358: latest committed script_revisions.version_number; None when the
script has no revisions beyond its inline source (row renders no version).
#358 board rollups. ref_count = distinct workflows referencing this
script via a code node script_ref; the last_run_* trio is the most
recent standalone (kind='script') run. Default/empty for a fresh row.
Examplegenerated
{ "facets": { "by_status": [ { "count": 1, "value": "example" } ], "javascript": 1, "python": 1, "total": 1, "typescript": 1 }, "items": [ { "created_at": "2026-04-15T12:00:00Z", "description": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "language": "example", "last_exit_code": 1, "last_run_at": "2026-04-15T12:00:00Z", "last_run_status": "example", "latest_version": 1, "name": "example", "ref_count": 1, "slug": "example", "updated_at": "2026-04-15T12:00:00Z", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "total": 1}