All schedules. Empty in skeleton mode.
const url = 'https://example.com/api/v1/reports/schedules';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/schedules \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Every schedule; empty in skeleton mode
A schedule row (joined with its definition’s name for display).
object
The notification channels a scheduled run is sent to (ADR-279). Empty sends nothing.
The one day a weekly schedule fires on, 0=Sun … 6=Sat.
The days a daily schedule runs on, 0=Sun … 6=Sat, sorted (ADR-279); empty is every day. For a weekly schedule, its one day.
How often a schedule fires.
The language the sent message is written in.
The IANA zone at_hour/at_minute and the day are a wall time in; null means UTC
(ADR-221).
Example
[ { "frequency": "daily", "last_status": "queued", "message_language": "en" }]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" }}