Skip to main content
Goal: Save up to 200 receipts created after a chosen UTC time. You are done when: every exported line is valid JSON and you know how many records were saved.

Export the receipts

Expected result: jq exits without an error. wc shows how many receipt records were saved.

Store the file safely

Receipts do not contain prompts or model output. They do contain operational details such as model, provider, usage, cost, and run IDs. Store them as business records.
This endpoint returns at most 200 receipts and does not currently provide a next-page token. Export often enough to keep each result below that limit. The export may be incomplete. Do not move the start time forward and call the result complete when a file reaches 200 records.

If it fails