Skip to content
Runs

List runs

Runs in a period, newest first - one row per logical run (a sharded CI run is one row; each job of a CI run that sets a job key is its own run, see jobKey), placed in the period and ordered by the start of its first shard (since 1.0.0-beta.13). CI and local runs both, unless source narrows it. Filter by branch, commit SHA prefix, status or source; page with the cursors. Cheap to moderate: bounded by the period’s runs.

GET/api/v1/projects/{projectId}/runs

Parameters

ParameterDescription
projectIdstring · pathrequired
A project id from GET /projects.
days7 | 14 | 30 | 90 · default 30
The period, in days, ending now. Must not exceed the plan’s retention (Standard 60, Pro 90 days); a longer period is refused with 400 invalid_period rather than answered with less data.
branchstring
Exact branch name.
shastring
A commit SHA or a prefix of one (4-40 hex characters). Matches the run’s commitSha - the commit the run is reported under: the pushed commit, or for a pull request its head - or its testedRevision, the application revision the run was told it tested (opt-in, usually null).
statuspassed | failed | cancelled | incomplete | running
Only runs with this status - the status field’s values. A cancelled run matches cancelled only (since 1.0.0-beta.14; passed and failed were the only values before it, and a cancelled run matched neither).
sourceci | local | all · default all
Which runs are listed, by where they ran: all - every run (the default); ci - runs a shard reported a CI provider for; local - runs no shard did (each run’s local field). Since 1.0.0-beta.14.
perPage10 | 25 | 50 · default 10
Rows per page.
cursorstring
Opaque. Pass nextCursor for older runs, or prevCursor together with direction=prev for newer runs.
directionnext | prev · default next
Which way the cursor pages.

Responses

200400401403404429500