Documentation
Compute plans and streams
View .mdOpenAPI

List a stream's completed outputs

GEThttps://weights.fyi/run/v1/streams/{stage_id}/outputsscope: read
text
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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer token with read scope.
stage_idpathyesPlan-qualified stream ID, or the authored stage ID with plan_id.
plan_idquerynoThe plan, when stage_id is the authored stage ID.
after_ordinalquerynoList ordinals above this one; default -1.
limitquerynoAt 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.

FieldMeaning
outputs[].pack_idThe completed pack.
outputs[].ordinalIts position in the stream; the list ascends.
outputs[].item_countItems registered with the pack.
outputs[].completed_at_msWhen the pack completed, in Unix milliseconds.
outputs[].receiptThe output receipt: location, digest, size and model identity where supplied.
outputs[].output_pathThe path of GET .../output for this pack.
next_after_ordinalThe last listed ordinal, or null for an empty page.

Errors

StatusCodeMeaning
400invalid_compute_planA bad query value, or a stage that takes no packs.
401unauthorizedSupply a valid token.
403scope_required, compute_tenancy_unauthorizedRead access is unavailable.
404compute_stage_not_foundAbsent or inaccessible stream.

Examples

sh
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.