List a stream's completed outputs
GET https://weights.fyi/run/v1/streams/{stage_id}/outputs?after_ordinal=<n>&limit=<n>
Authorization: Bearer <token> scope: read- Available since
- 2026-11-01: included in this build; see What is live for deployment status.
- Answer time
- synchronous persisted-state read.
List a stream's completed packs in ordinal order, oldest first, so a consumer can drain results in the order it sent its input. Each entry carries the pack's output receipt and the path that reads its bytes with the same API key.
Page with after_ordinal: start at -1, then pass the previous page's next_after_ordinal. An empty page answers next_after_ordinal null; call again later with the same after_ordinal. Packs complete out of order, so a pack completing later at a lower ordinal than one already listed appears only to a call whose after_ordinal is below it: a consumer that keeps strict order waits at the first missing ordinal and checks that pack with GET .../packs/{pack_id}.
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer token with read scope. |
stage_id | path | yes | Plan-qualified stream ID, or the authored stage ID with plan_id. |
plan_id | query | no | The plan, when stage_id is the authored stage ID. |
after_ordinal | query | no | List ordinals above this one; default -1. |
limit | query | no | At most this many entries, 1 to 500; default 100. |
Return value
200 OK returns plan_id, authored stage_id, stream_id, after_ordinal, limit, outputs and next_after_ordinal.
| Field | Meaning |
|---|---|
outputs[].pack_id | The completed pack. |
outputs[].ordinal | Its position in the stream; the list ascends. |
outputs[].item_count | Items registered with the pack. |
outputs[].completed_at_ms | When the pack completed, in Unix milliseconds. |
outputs[].receipt | The output receipt: location, digest, size and model identity where supplied. |
outputs[].output_path | The path of GET .../output for this pack. |
next_after_ordinal | The last listed ordinal, or null for an empty page. |
Errors
| Status | Code | Meaning |
|---|---|---|
400 | invalid_compute_plan | A bad query value, or a stage that takes no packs. |
401 | unauthorized | Supply a valid token. |
403 | scope_required, compute_tenancy_unauthorized | Read access is unavailable. |
404 | compute_stage_not_found | Absent or inaccessible stream. |
Examples
curl -s "https://weights.fyi/run/v1/streams/STREAM_ID/outputs?after_ordinal=-1&limit=100" -H "Authorization: Bearer $WEIGHTS_API_KEY"History
- 2026-11-01: added ordered output listing.
See also
See upload a pack, read a pack's output and read one pack.