Saved runs, newest first, optionally narrowed. Empty in skeleton mode.
const url = 'https://example.com/api/v1/reports/runs';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/api/v1/reports/runs \ --header 'Authorization: Bearer <token>'Skeleton mode has no report store, so this answers an empty list rather than a 503 — the runs
list is one tab of a page that otherwise works. The filter is validated before that early
return, so a malformed one is a 400 on every deployment rather than an empty 200 on some.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only runs generated from this report definition.
Only runs in this state: queued | running | succeeded | failed.
Note succeeded, not done — an analysis run uses the other word.
Only runs created at or after this instant (RFC 3339).
Responses
Section titled “Responses”Matching runs, newest first; empty in skeleton mode
A run row for the saved-reports list (without the heavy result_* payloads).
object
Lifecycle of one report run.
What started a run.
Example
[ { "state": "queued", "trigger": "manual" }]The state is outside its vocabulary, or since is not RFC 3339
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}No valid bearer token
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Role lacks View
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}