`GET /api/projects/{id}/backlog/items?state=done` (AUD-PERF-008). Workspace-scoped, member-readable with the same gate as the board; a project of another workspace is a 404.
const url = 'https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backlog/items?state=example';const options = {method: 'GET', headers: {cookie: 'supacloud_session=<supacloud_session>'}};
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/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backlog/items?state=example' \ --cookie supacloud_session=<supacloud_session>GET /api/projects/{id}/backlog/items?state=done (AUD-PERF-008). Workspace-scoped,
member-readable with the same gate as the board; a project of another workspace is
a 404.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project ID
Query Parameters
Section titled “Query Parameters”The item state to page. Only done is accepted.
The previous page’s next_cursor.
Page size (default 50, at most 200).
Responses
Section titled “Responses”One page of the project’s completed backlog items, newest change first
One page of a project’s done history. next_cursor is None on the last page.
object
One backlog card on the board (ADR 0039 S8 CONTRACT). updated_at is RFC3339.
gates_green means precisely “a human drag → done will be ACCEPTED right
now” (BE3): the INDEPENDENT audit passed (a backlog.awaiting_human_merge
audit row exists) AND the item is CURRENTLY in_review (the state = 'in_review' filter — the merge gate refuses to release any non-in_review
item, BE1 — so a parked card carrying a stale marker reads false). It is NOT “merged” and
NOT “awaiting release”; the FE uses it to decide whether to offer the drag →
done gesture. The reviewer bar (required_reviewers) is orthogonal — a green
item may still need N human approvals, which the drag → done records.
object
SC-1 — the merge gate’s phase for this card: ci_pending (a required commit status
of the target repository is pending or absent), awaiting_human_status (an
owner-approved status such as gate-class), merge_retry, merge_failed (the
forge refuses the configured merge style) or blocked. None when the gate is not
waiting on this item.
AUD-UX-004 — the pull request the merge gate evaluated, when known.
AUD-UX-004 — the merge gate’s stored reason for this card (the forge’s answer for a
refused merge, what a wait is waiting for). None when the gate is not holding it.
SC-2 — the issue’s label names (None when it has none), milestone and URL,
and why the item is held or was cancelled; round counts reopen rounds (1 =
first delivery). All optional on the wire so an older client (and its
fixtures) keeps parsing the card.
#532 (U2) — the classification SCOPE axis (small|medium|large), None
until classified.
The issue SOURCE (linear | notion | a git-provider name), #708 X3 (was tracker).
Example generated
{ "items": [ { "cancel_reason": "example", "external_id": "example", "gate_phase": "example", "gate_pr_url": "example", "gate_reason": "example", "gates_green": true, "hold_reason": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "issue_url": "example", "kind": "example", "labels": [ "example" ], "last_error": "example", "milestone": "example", "priority": 1, "readiness": "example", "round": 1, "run_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "scope": "example", "source": "example", "state": "example", "title": "example", "updated_at": "example", "waiting_for": { "blocked_by_external_id": "example", "blocked_by_item_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "overlap_glob": "example", "summary": "example" } } ], "next_cursor": "example"}A state other than done, or a cursor the server did not mint
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"}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"}Not a member of the workspace
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"}Project not found in the workspace
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"}