List supervisor fix proposals
const url = 'https://example.com/v1/proposals?limit=25&status=draft&tier=prompt&scopeKind=tenant&inherit=true';const options = { method: 'GET', headers: {'X-Supervisor-Id': 'example', Authorization: 'Bearer <token>'}};
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/v1/proposals?limit=25&status=draft&tier=prompt&scopeKind=tenant&inherit=true' \ --header 'Authorization: Bearer <token>' \ --header 'X-Supervisor-Id: example'Cursor-paginated list scoped to (tenantId, supervisorId). Filters: ?status=, ?agentId=, ?tier=. Sort order is binding-defined (typically createdAt desc, id desc).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”SupervisorId scoping this request. Every /v1/proposals route requires this header — proposals are supervisor-owned, and the API does not derive supervisor scope from the token.
Query Parameters
Section titled “Query Parameters”1..100. Default 25.
Opaque cursor from a prior response. Absent → first page.
Filter by proposal status.
Filter by artifact tier.
Discriminator for the ?scopeKind + ?scopeId + ?inherit triplet. Tenant carries no id (implicit from session); org/project require scopeId.
Optional scope discriminator. If absent, no scope filter is applied.
Required IF scopeKind is org or project. MUST be absent if scopeKind=tenant (tenant is implicit from the session). Malformed combinations return 400 scope-invalid.
Default true. false = literal-at-this-scope only (admin/audit view). Load-bearing for policy/config-scoped resources (mcp-endpoints); documented no-op for content-scoped resources (agents/flows/tools/…).
Responses
Section titled “Responses”Page of proposals.
object
object
FixProposalId.
Semver of the baseline agent version.
Polymorphic change payload. Shape depends on the sibling tier on the proposal (prompt / retrieval / tool-config).
object
object
Sha256(tier + agentId + agentVersion + canonical(change)). Dedup key.
HITL approval id created when the proposal was submitted for review.
Semver of the new agent version the proposal materialized as. Present on applied and rolled-back proposals.
Opaque cursor for the next page. Absent when hasMore: false.
Example
{ "data": [ { "tier": "prompt", "patternRefs": [ { "kind": "guardrail-violation" } ], "status": "draft" } ]}Missing X-Supervisor-Id header or malformed query parameter.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}