Documentation
Your workspace
View .mdOpenAPI

Read the workspace snapshot

GEThttps://weights.fyi/run/v1/workspace/snapshotscope: read
text
GET https://weights.fyi/run/v1/workspace/snapshot[?scope=mine|workspace|all]
Authorization: Bearer <token>                    scope: read
Available since
Not available yet: built on 2026-11-16, live with the deploy that carries it.
Answer time
synchronous: the answer is read from your workspace's records at once and waits for no model.

Answers in one read what your work is doing: what runs, what waits and on what, what failed and how many packs wait for a retry, what each run has cost, the money your workspace holds and why, your own workers, and the calls the service refused you. Every figure says whether it was measured: a figure the service did not record is null with its reason, never a 0, and a run with dead-lettered packs or failed items is never done.

scope=mine shows the work you submitted, yourself or with keys you issued; a key no person issued sees only its own work. workspace shows all of the workspace, and all gives a signed-in person one block per workspace they belong to. A member's default is mine, everyone else's workspace. money needs manage in the workspace it describes: without it, money is null and withheld says why. The lists hold at most 50 plans and as many jobs; work_summary always counts all of them.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token with read, or a signed-in session.
scopequerynomine, workspace or all, as above.

Return value

200 OK with the snapshot.

FieldMeaning
schemaAlways weights.workspace-snapshot/v1.
observed_atWhen the answer was read.
scopeThe scope answered, the workspace, the person and key it was read for, the window (7d) and the list size.
workspaceThe workspace's id, name and your role in it.
headline_verdictThe most urgent state as a code and a sentence.
work_summaryRuns running and waiting now; failed, completed_7d and degraded_7d in the last 7 days; dead_lettered_packs.
itemsThe newest runs: each plan or job with its outcome, progress, settled_usd and link. A plan's progress also says how many of its packs a worker holds leased now (packs_leased) and when a pack of it last completed (last_completed_at, null while none has).
items_listedHow many plans and jobs items shows, of how many.
campaignsYour campaigns (a plan's metadata.run_id) with their plan counts and their own read.
waiting_reasonsFor each run work_summary counts as waiting, newest first and as many as the list size: a plan's price, capacity or dependency, or unrecorded for a queued job, in words, and the end of a plan's window. expected_start is, for a plan waiting for a price or queued, the first start the market forecast expects at or under that plan's own hourly price limit; null with the reason otherwise.
moneyWith manage: available_usd, held_usd, active_holds (each flagged orphaned with why), orphaned_holds, burn_usd_per_hour (the hourly average of the credit charged in the last 24 hours) and burn_usd_per_hour_7d (in the last 7 days), runs_out_at (the available credit spent at the last 24 hours' rate; null with the reason when nothing is available or nothing was charged), this month's spend, caps and billing.
workersYour own enrolled workers: reachable, serving, serving_state (serving, or paused or draining as you set it), serving_changed_at, declared_slots, why_idle.
refusals_recentCalls of the last 7 days that did not complete, newest first: refused before they were admitted (source admission), or refused, failed or cut on their own record (source call, status refused, failed or cut), each with a cause and an action where one is known.
sourcesWhere the answer was read from, and whether each source answered.

Errors

StatusCodeWhen it happensWhat to do
400invalid_scopescope is not one of the three, all without a signed-in person, or mine for a credential that names no person and no key.Ask for another scope.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work.Use a valid token.
403account_suspendedThe account is suspended.Talk to us.

Examples

sh
curl -s "https://weights.fyi/run/v1/workspace/snapshot?scope=mine" -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "schema": "weights.workspace-snapshot/v1",
  "observed_at": "2026-11-16T09:45:00Z",
  "scope": {"kind": "mine", "workspace_id": 6, "person_id": 12, "token_id": null, "window": "7d", "list_rows": 50},
  "workspace": {"id": 6, "name": "Kaggle team", "role": "member"},
  "headline_verdict": {"code": "waiting_price", "sentence": "1 waiting on price."},
  "work_summary": {"running": 0, "waiting": 1, "failed": 0, "completed_7d": 14, "degraded_7d": 0, "dead_lettered_packs": 0},
  "money": null,
  "withheld": {"money": {"error": "scope_required", "required": "manage"}}
}

History

  • 2026-11-16 (built, live with the deploy that carries it): the snapshot, its three scopes and its stream.
  • 2026-11-18 (built, live with the deploy that carries it): progress.packs_leased and last_completed_at, expected_start from the market forecast, burn_usd_per_hour, burn_usd_per_hour_7d and runs_out_at, and refusals_recent with calls refused before admission and calls that failed or were cut.

See also

GET /v1/workspace/snapshot/events, POST /v1/reservations/release-orphaned, GET /v1/workspace/audit.