Stream the workspace snapshot
GET https://weights.fyi/run/v1/workspace/snapshot/events[?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
- the first event at once, then one every few seconds for as long as the connection stays open.
Streams GET /v1/workspace/snapshot as server-sent events: each snapshot event's data is a whole snapshot, the same document the plain read answers, so a page or a program can follow its work without asking again. It takes the same scope and answers it the same way, money included.
The service builds one snapshot per period for all of your open streams of the same scope, and checks your credential again at every one. If the key is revoked, the session ends or your role no longer allows it, the stream's next events are unavailable events without data: reconnect with a credential that works.
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 for the plain read. |
Return value
200 OK with Content-Type: text/event-stream. The stream opens with a retry: line, then sends events until you close it.
| Event | Meaning |
|---|---|
snapshot | data is the snapshot as JSON; id is its observed_at. |
unavailable | The snapshot could not be built for this credential this period; data says snapshot_build_failed. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
400 | invalid_scope | As for the plain read. | 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 -sN "https://weights.fyi/run/v1/workspace/snapshot/events?scope=workspace" -H "Authorization: Bearer $WEIGHTS_API_KEY"retry: 5000
event: snapshot
id: 2026-11-16T09:45:00Z
data: {"schema":"weights.workspace-snapshot/v1","observed_at":"2026-11-16T09:45:00Z", ...}History
- 2026-11-16 (built, live with the deploy that carries it): the stream.