Documentation
Compute plans and streams
View .mdOpenAPI

List compute plans

GEThttps://weights.fyi/run/v1/compute/plansscope: read
text
GET https://weights.fyi/run/v1/compute/plans
Authorization: Bearer <token>                    scope: read
Available since
2026-10-31: included in this build; see What is live for deployment status.
Answer time
synchronous snapshot; reads current progress without advancing scheduling.

Lists the ComputePlans owned by the calling account, newest first, with each stage's progress and pack counts. Another account's plans never appear. Use it to see what is queued, running or finished without keeping your own index of plan identifiers. A plan that waits here (queued, waiting_price, ready_to_wake, waiting_capacity) costs nothing while it waits (Queued work).

Pages hold at most limit plans. When more remain, next_cursor is a string: send it as cursor, with the same filters, for the next page. It is null on the last page. Plans are ordered by admission time, then by plan_id, both descending.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer token with read.
statequerynoA plan state from the receipt, or active for every plan not completed, failed or cancelled.
wake_policyquerynostandard, scavenger_stream or piggyback.
qos_priorityquerynoThe QoS tier the schedule declares (qos_priority, else qos_tier, else qos); a value from capabilities qos_classes. Plans that declare none match no value.
limitquerynoInteger 1–200; default 50.
cursorquerynoThe next_cursor of an earlier page.
scopequerynoworkspace, the default: every plan of the workspace your credential acts in. mine: the plans submitted with this key; for a signed-in person, the plans you submitted and those submitted with any key you issued in this workspace. A credential that names no person and no key has nothing of its own and is refused mine.

Each parameter may be given once. Unknown parameters are refused, so a misspelt filter never lists everything.

Return value

200 OK with an object:

FieldMeaning
plansArray of plan summaries, newest admission first.
next_cursorString for the next page, or null.
limitThe page size used.
plans[].plan_id, operation_key, tenant_idThe plan's identity.
plans[].statePlan state, as in the receipt.
plans[].created_at_ms, updated_at_msInteger Unix timestamps in milliseconds.
plans[].wake_policy, qos_priorityThe schedule's wake policy (standard may start capacity; scavenger_stream and piggyback only use what already runs), and its declared QoS tier or null.
plans[].qos_classstandard or flex: the class the tier resolves to. The scheduling weight is a third thing: 4, 3, 2 or 1 by tier, or an explicit priority_weight; see submission.
plans[].window_start_ms, until_msThe schedule window; until_ms is the deadline at which unfinished work fails or, under incomplete: ok, settles.
plans[].pack_countsObject: packs per state, summed over stages.
plans[].leases_live, total_accrued_cost_usd_microsIntegers summed over stages.
plans[].submitted_byperson_id, the person behind the credential that submitted the plan, and token_id, the key it came with (null for a signed-in session). Recorded when the plan was admitted. Both null: the submitter was not recorded; a plan admitted before 16 November 2026 names a person only where its tenancy.actor_email matched exactly one member of the workspace.
plans[].stages[].stage_id, stream_id, needsAuthored identifier, plan_id~stage_id, dependencies.
plans[].stages[].kind, modelWorkload kind and model, or null.
plans[].stages[].state, stream_sealed, continuousStage state, whether its stream is closed, and whether it is a continuous stream whose pack counts are a live queue rather than progress toward a total.
plans[].continuousBoolean: at least one stage is a continuous stream.
plans[].stages[].packs_total, packs_completed, items_completed, steps_completed, accrued_cost_usd_microsInteger progress, as in the receipt.
plans[].stages[].pack_countsObject: the stage's packs per stored state, every state a pack can hold listed, zeros included.
plans[].stages[].leases_liveUnexpired leases workers hold on this stage. Their identities are not shown.

Errors

StatusCodeMeaning
400invalid_compute_planUnknown or repeated parameter, unknown filter value, limit outside 1–200, or a cursor this call did not issue.
400invalid_scopescope is neither mine nor workspace, or mine was asked by a credential that names no person and no key.
401unauthorized, invalid_token, token_revoked, token_expiredSupply a valid token.
403scope_required, account_suspendedToken lacks read, or the account is suspended.

Examples

sh
curl -s 'https://weights.fyi/run/v1/compute/plans?state=active&limit=20' \
  -H "Authorization: Bearer $WEIGHTS_API_KEY"

History

  • 2026-10-31: documented the account-scoped plan list, filters and cursor.
  • 2026-11-16: told the declared tier, the resolved class and the scheduling weight apart.
  • 2026-11-16 (built, live with the deploy that carries it): scope=mine, and submitted_by on each plan.

See also