List individual captures for a run
One row per stored sample, with its own answer text, sample index, surface, and sources. Filter by prompt ID and/or surface slug (e.g. `chatgpt_ui`). Default 25 rows per page, maximum 100. Follow `next` across all pages and use a finished run for a stable dataset. Empty or errored stored samples are included. Failed attempts without a stored sample have no row here.
/api/runs/{run_id}/samples/Personal Access Token (create one from Settings -> API Keys in the dashboard). Send as Authorization: Bearer gr_live_.... An X-API-Key: gr_live_... header (see the apiKeyAuth scheme) is accepted as an equivalent alternative — send ONE of the two, not both.
In: header
Path Parameters
Query Parameters
1-based page number.
Rows per page. Server-side default/cap vary per endpoint.
1 <= value1 <= length <= 40Response Body
application/json
curl -X GET "https://example.com/api/runs/0/samples/"{ "results": [ { "id": 0, "runId": 0, "promptId": 0, "sampleIndex": 0, "surface": "string", "model": "string", "promptText": "string", "answerText": "string", "capturedAt": "2019-08-24T14:15:22Z", "sources": [ "string" ], "outcome": "captured" } ], "count": 0, "next": "string", "previous": "string"}Get run detail GET
Run detail: a PAGE of responses (light shape — no `answerText`; drill into `GET /api/responses/{id}/` for the full text), plus whole-run aggregated competitors and sources. `responses[]` is paged with `?page=N&page_size=M` (default 200, max 500). Walk `responsesNext` until it is null to collect every response in the run; `responsesCount` is the run's full total. `competitors` and `sources` are aggregated over the ENTIRE run on every page, so they do not need to be accumulated across pages. For poll-loop use — just "is this run done yet" — call `GET /api/runs/{id}/status/` instead: same status fields, none of the per-answer work. A run stays hidden until it is either legacy or published (`published_at` set); an unpublished run 404s the same as a nonexistent one.
Get run status GET
The four poll-loop fields from run detail — `id`, `status`, `pollUrl`, `finishedAt` — and nothing else. Reads a single run row: no answers, no competitor or source aggregation. This is the endpoint a "is the scan finished?" loop should call.