Skip to content

`GET /api/councils` — one server-paginated, filtered + sorted page of the workspace's councils plus the total and the workspace-wide facet chips.

GET
/api/councils
curl --request GET \
--url https://example.com/api/councils

GET /api/councils — one server-paginated, filtered + sorted page of the workspace’s councils plus the total and the workspace-wide facet chips.

q
string

Free-text search over the prompt, the judge synthesis and the target id.

status
string

Status facet (queued | running | judge_pending | completed | dismissed | actioned); blank or all = every status.

mode
string

Mode facet (analyze | propose | review | standup); blank or all = every mode.

sort
string

Whitelisted sort column: created_at | completed_at | status | mode | target_type | judge_confidence. Default created_at.

dir
string

asc | desc (default desc).

limit
integer format: int64

Page size, 1..=200 (default 20).

offset
integer format: int64
include_facets
boolean

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.

One page of councils.

Media typeapplication/json

GET /api/councils body — one page of councils + the pager total + facet chips.

object
facets
One of:

Present when requested (include_facets).

object
by_mode
required
Array<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
count
required

How many rows fall in this bucket.

integer format: int64
value
required

The bucket value (e.g. a scope, a role, a framework).

string
by_status
required
Array<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
count
required

How many rows fall in this bucket.

integer format: int64
value
required

The bucket value (e.g. a scope, a role, a framework).

string
total
required

Every council of the workspace (the all-tab count).

integer format: int64
items
required
Array<object>
object
completed_at
string | null format: date-time
created_at
required
string format: date-time
created_by
required
string format: uuid
id
required
string format: uuid
judge_confidence
number | null format: double
judge_profile_id
string | null format: uuid
judge_synthesis
string | null
mode
required
string
outcome
prompt
string | null
recommended_action
status
required
string
target_id
string | null
target_metadata
required
target_type
required
string
workspace_id
required
string format: uuid
total
required

Councils matching the active filter (drives the pager).

integer format: int64

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
}