`GET /api/inbox/decisions/count` — the aggregate pending-decision count (#874 IA-1a). Counting-parity with `GET /api/inbox/board` is structural: both run [`sources::fetch_all`], so a source the caller cannot read (or that errors) contributes 0 here exactly when it contributes 0 there.
const url = 'https://example.com/api/inbox/decisions/count';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/inbox/decisions/countGET /api/inbox/decisions/count — the aggregate pending-decision count
(#874 IA-1a). Counting-parity with GET /api/inbox/board is structural:
both run [sources::fetch_all], so a source the caller cannot read (or that
errors) contributes 0 here exactly when it contributes 0 there.
Responses
Section titled “Responses”OK
The decision-inbox count, total plus the per-source breakdown the total is
the sum of. The breakdown is not cosmetic: it is what makes a badge/inbox
disagreement diagnosable instead of a mystery number. Every field is the
caller’s ACTIONABLE count for that source (#976 R2: identical to the union
board’s facets.actionable arithmetic).
object
#1527 S4 — artifact documents waiting on the caller (a follow-up to approve, an agent’s answer, an external comment to forward).
Backlog items waiting on a person (release, owner status, refused merge, blocked, needs_info) — member-actionable (AUD-UX-001).
Governor profile-version proposals still open (workspace OWNER only).
Memory-governance review items still pending (admin + entitlement).
Sum of the source counts — equals the board’s facets.actionable.
AI-scaffold proposals still pending (admin-decidable; 0 for a member). #976 R2.
Induced-skill proposals still open (admin-decidable; 0 for a member).
Active governor recommendations (admin-decidable; 0 for a member). #976 R2.
Interactive task tool/question/visual gates (workspace-scoped).
Workflow human gates waiting on the caller (deduped per workflow run).
Example generated
{ "artifact_comments": 1, "backlog_items": 1, "governor_proposals": 1, "memory_reviews": 1, "pending": 1, "proposals": 1, "skill_proposals": 1, "suggestions": 1, "tool_approvals": 1, "workflow_gates": 1}Authentication required
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Permission denied
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Structured server error
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}