LedgeKitDocs
API referenceHTTP API
Developer documentation

Download a dataset

Read a complete snapshot of saved inputs with their original source identities.

Set DATASET_ID to a dataset UUID from your app's console.

curl --fail-with-body "https://api.ledgekit.com/v1/datasets/$DATASET_ID" \
  -H "Authorization: Bearer $LEDGE_READ_KEY" \
  --output dataset.json

The response includes dataset metadata and all items; there is no pagination or query string. Each item's input preserves the original application arguments. Trace datasets contain workflow inputs; span datasets contain per-attempt inputs and a sourceSpanId.

Datasets belong to the app and can include source items from both environments. A read key for either environment in that app can download them. A dataset outside the key's app, or a deleted dataset, returns 404 not_found.

Use the Swift loader to enforce response limits, decode every input, and check source definitions before running an evaluation. The SDK accepts at most 1,000 items and 4 MiB per downloaded dataset. Create and change membership in the console.

Loading API schema…