get_api_schedules
const url = 'https://example.com/api/schedules';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/schedules \ --cookie supacloud_session=<supacloud_session>List task schedules in the selected workspace, one page at a time.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page size, default 100, at most 200.
The previous page’s next_cursor, echoed unchanged.
Responses
Section titled “Responses”OK
One page of schedules, newest first.
object
object
#708 F11 / who-5 — the agent PROFILE the fired task runs under (agent_profile_id
WHO column). None = no pin. Surfaced so the schedule editor shows the current pin.
ADR 0030 W4 — when set, this schedule fires a kind='app' run of the
given App on cadence. Exactly one of workflow_id / app_id / a task
definition is set. Surfaced on the wire so the schedule-editor can show
(and the trigger picker can filter on) the App target.
ADR 0030 W4 — the per-fire App input payload prefilled into the run’s
trigger context. None for a task / workflow schedule.
once | daily | weekly | monthly | interval.
How many of the newest produced tasks failed or were cancelled since the last one that completed; 0 when the newest completed or nothing fired yet.
AUD-WIR-034 — the next fire lands inside the workspace quiet-hours window at a wall-clock time this schedule repeats: a recurring fire there is skipped on every occurrence, a one-time fire is deferred to the window end. The editor warns on it.
#908 — the step width of an interval cadence in minutes (5–1440);
null for calendar cadences (DB CHECK pair, migration 323).
The runs row of the schedule’s most recent fire (ADR 0022 R4). R5’s
schedule-page run column links this into /runs/{last_run_id};
last_task_id (the task definition) is kept alongside it.
03.09.2026 — the status of the newest task this schedule FIRED (completed,
failed, running, …), read from the tasks it stamped with its id; null
when it never fired. failure_count counts TRIGGER failures only, which is why
a schedule whose every produced task fails could read healthy before this.
When set, this schedule fires a kind='workflow' run of the given
workflow on cadence (ADR 0020 V4 schedule trigger). Exposed on the
wire (V10) so the web builder’s schedule trigger config form can
filter the schedules picker down to the rows that already belong to
the workflow being edited, without a second round-trip.
Pass as cursor for the next page; null on the last page.
Example generated
{ "items": [ { "agent_profile_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "agent_type": "example", "app_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "app_inputs": "example", "cadence": "example", "config": "example", "consecutive_failed_runs": 1, "created_at": "2026-04-15T12:00:00Z", "failure_count": 1, "fires_in_quiet_hours": true, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "interval_minutes": 1, "last_error": "example", "last_run_at": "2026-04-15T12:00:00Z", "last_run_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "last_task_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "last_task_status": "example", "next_run_at": "2026-04-15T12:00:00Z", "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "prompt": "example", "run_count": 1, "status": "example", "timezone": "example", "title": "example", "updated_at": "2026-04-15T12:00:00Z", "user_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "workflow_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "next_cursor": "example"}Structured client error
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"}Permission denied
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"}Structured server error
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"}