Read the workspace snapshot
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
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and a token with read, or a signed-in session. |
scope | query | no | mine, workspace or all, as above. |
Return value
200 OK with the snapshot.
| Field | Meaning |
|---|---|
schema | Always weights.workspace-snapshot/v1. |
observed_at | When the answer was read. |
scope | The scope answered, the workspace, the person and key it was read for, the window (7d) and the list size. |
workspace | The workspace's id, name and your role in it. |
headline_verdict | The most urgent state as a code and a sentence. |
work_summary | Runs running and waiting now; failed, completed_7d and degraded_7d in the last 7 days; dead_lettered_packs. |
items | The 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_listed | How many plans and jobs items shows, of how many. |
campaigns | Your campaigns (a plan's metadata.run_id) with their plan counts and their own read. |
waiting_reasons | For 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. |
money | With 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. |
workers | Your own enrolled workers: reachable, serving, serving_state (serving, or paused or draining as you set it), serving_changed_at, declared_slots, why_idle. |
refusals_recent | Calls 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. |
sources | Where the answer was read from, and whether each source answered. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
400 | invalid_scope | scope 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. |
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work. | Use a valid token. |
403 | account_suspended | The account is suspended. | Talk to us. |
Examples
curl -s "https://weights.fyi/run/v1/workspace/snapshot?scope=mine" -H "Authorization: Bearer $WEIGHTS_API_KEY"{
"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_leasedandlast_completed_at,expected_startfrom the market forecast,burn_usd_per_hour,burn_usd_per_hour_7dandruns_out_at, andrefusals_recentwith 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.