`GET /api/councils` — one server-paginated, filtered + sorted page of the workspace's councils plus the total and the workspace-wide facet chips.
const url = 'https://example.com/api/councils';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/councilsGET /api/councils — one server-paginated, filtered + sorted page of the
workspace’s councils plus the total and the workspace-wide facet chips.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Free-text search over the prompt, the judge synthesis and the target id.
Status facet (queued | running | judge_pending | completed | dismissed
| actioned); blank or all = every status.
Mode facet (analyze | propose | review | standup); blank or all = every
mode.
Whitelisted sort column: created_at | completed_at | status | mode |
target_type | judge_confidence. Default created_at.
asc | desc (default desc).
Page size, 1..=200 (default 20).
Recompute the workspace-wide facet chips (default true). The board sends false
on a page/sort change since the chip counts do not depend on the filter.
Responses
Section titled “Responses”One page of councils.
GET /api/councils body — one page of councils + the pager total + facet chips.
object
Present when requested (include_facets).
object
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).
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).
Every council of the workspace (the all-tab count).
object
Councils matching the active filter (drives the pager).
Example generated
{ "facets": { "by_mode": [ { "count": 1, "value": "example" } ], "by_status": [ { "count": 1, "value": "example" } ], "total": 1 }, "items": [ { "completed_at": "2026-04-15T12:00:00Z", "created_at": "2026-04-15T12:00:00Z", "created_by": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "judge_confidence": 1, "judge_profile_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "judge_synthesis": "example", "mode": "example", "outcome": "example", "prompt": "example", "recommended_action": "example", "status": "example", "target_id": "example", "target_metadata": "example", "target_type": "example", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "total": 1}