List approvals visible to the caller
const url = 'https://example.com/v1/approvals?limit=25&status=pending&requiredRole=standard';const options = {method: 'GET', headers: {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/approvals?limit=25&status=pending&requiredRole=standard' \ --header 'Authorization: Bearer <token>'Requires the token to carry a reviewerRole. Role-scoped: reviewers only see approvals whose requiredRole rank ≤ their rank (standard < senior < admin).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”1..100. Default 25.
Opaque cursor from a prior response. Absent → first page.
Filter by approval status.
Reviewer role class. Hierarchy: standard < senior < admin.
Filter by required reviewer role. Caller must have a rank ≥ the value — else 403.
ISO 8601 timestamp; return approvals created strictly after this.
Responses
Section titled “Responses”Page of approvals.
object
object
object
Reviewer role class. Hierarchy: standard < senior < admin.
object
object
Opaque cursor for the next page. ISO timestamp of the tail row internally; treat as opaque on the client.
Example
{ "data": [ { "requiredRole": "standard", "status": "pending" } ]}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" }}Token lacks a reviewer role or asked for a tier above the caller.
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" }}