`GET /api/runners/queue` — the caller's workspace's waiting queue (SC-6): per label set, the tasks whose open assignment no runner has CLAIMED yet, each with its task id, title, workspace and how long it has waited. Bound and unbound alike: a row the hub already placed on a runner that has not polled is waiting too. Member-safe: it names no runner, only the workspace's own tasks. Scoped to the caller's active workspace.
const url = 'https://example.com/api/runners/queue';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/runners/queue \ --cookie supacloud_session=<supacloud_session>GET /api/runners/queue — the caller’s workspace’s waiting queue (SC-6): per label
set, the tasks whose open assignment no runner has CLAIMED yet, each with its task
id, title, workspace and how long it has waited. Bound and unbound alike: a row the
hub already placed on a runner that has not polled is waiting too. Member-safe: it
names no runner, only the workspace’s own tasks. Scoped to the caller’s active
workspace.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Waiting tasks per required label set, deepest first
One label set tasks are waiting for, and the tasks waiting under it: bound to a runner that has not claimed them yet, or unbound.
object
How many of the LISTED waiting tasks require exactly this label set: the length
of waiting_tasks, inside the read window of [WAITING_QUEUE_LIMIT] tasks.
The (lowercase) labels the waiting tasks require. Empty for tasks that wait
under an explicit queue policy and require no label.
How many tasks wait for exactly this label set in total, listed or not. Equal
to count while the queue fits the read window; total_waiting - count more wait
beyond it otherwise. A label set whose tasks all lie beyond the window still
appears, with count = 0.
The waiting tasks of this label set, longest wait first. Every one has an open
assignment no runner has claimed (runner_bound says whether the hub already
picked a runner for it).
One task whose open assignment NO runner has claimed yet: the unit a person reads as “waiting for a runner”. It carries the task identity (so the queue names work, not only a count), the workspace it lives in, and how long it has waited.
object
The open assignment that waits. Its runner_id is None while any eligible
runner may bind it, and names the runner the hub already picked when the work
was placed on one that has not polled yet.
true when the hub already placed the work on a specific runner that has not
claimed it (a pin, an offline runner, or one at its parallel cap); false for
an unbound row any eligible runner may bind at claim.
The task that waits.
The task’s title, so the queue is readable without a second lookup.
How long the task has waited for a runner, in whole seconds on the database clock.
The workspace the task lives in — the queue’s scope.
Example generated
[ { "count": 1, "required_labels": [ "example" ], "total_waiting": 1, "waiting_tasks": [ { "assignment_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "runner_bound": true, "task_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "waited_seconds": 1, "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ] }]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"}