Help CenterVying
Open Vying
Menu

List Runs for a Prompt

GET/prompts/{promptId}/runs

Individual model answers behind the aggregates, newest first, without their text — the list stays small enough to page through. Fetch GET /prompts/{promptId}/runs/{runId} for the answer itself.

Needs read access. About keys

Request

curl "https://app.vyingfor.com/api/v1/prompts/{promptId}/runs?start=2026-11-01T00:00:00Z&end=2026-12-01T00:00:00Z" \
  -H "Authorization: Bearer YOUR_API_KEY"

Parameters

NameInTypeDescription
promptId requiredPathstring
start requiredQuerystring

Inclusive lower bound of the window, an ISO 8601 timestamp such as 2026-01-01T00:00:00Z. Aligned down to the quarter hour, the grain analytics are aggregated at; where a response repeats the window, it repeats the aligned one. A bare YYYY-MM-DD is rejected: that is /prompts/{promptId}/snapshot's spelling and means a UTC calendar day there.

end requiredQuerystring

Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter hour. The window is half-open: a run at exactly end is outside it. start and end inside one quarter-hour bucket leave an empty window and are rejected. The window can be at most 1,096 days long.

modelQuerystring

Restrict to one model, e.g. chatgpt. See GET /models.

pageQueryinteger

Page number, 1-based. Default 1.

limitQueryinteger

Items per page. Values above the maximum are clamped, not rejected. Default 20. Up to 100.

Response

200 List runs for a prompt

FieldTypeDescription
dataRunSummary[]
paginationPagination

Errors