Pipelines
Preview

List a pipeline's runs

The history: each snapshot's trip through the pipeline with where it is now, who started it and the stages it passed, newest first unless `order` says oldest. Each run names the version it started on. `counts` are for the tiles above the list and ignore the filters; `total` counts the runs the filte

GET
/pipelines/{pipelineId}/runs
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

pipelineId*string
Formatuuid
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

state?array<>

Only runs in one of these states.

Itemsitems <= 6
appId?string

Only runs that carry this app.

Formatuuid
startedBy?string

Only runs a person, an agent or the system started.

Value in"user""agent""system"
q?string

Only runs whose snapshot id contains this text.

Lengthlength <= 40
order?string
Default"newest"
Value in"newest""oldest"

Response Body

A page of runs.

application/json
  1. response
items*array<>
nextCursor?string
total*integer

The runs the filters match.

counts*
Example Request
curl -X GET 'https://wardn.example.com/api/v1/pipelines/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "version": 0,      "snapshotBrief": {        "contentId": "string",        "origin": "sync",        "commitSubject": "string",        "commitAuthor": "string",        "committedAt": "2019-08-24T14:15:22Z",        "change": {          "kind": "image",          "app": "string",          "from": "string",          "to": "string"        },        "apps": [          {            "appId": "28c365d5-df94-4a54-8217-3ce51d068868",            "name": "string",            "sourceRepo": "string",            "sourcePath": "string",            "renderType": "string",            "commit": "string",            "branch": "string",            "branchProtected": true,            "prNumber": 0,            "pusher": "string",            "commitSubject": "string",            "commitAuthor": "string",            "committedAt": "2019-08-24T14:15:22Z",            "refKind": "branch",            "refName": "string",            "commitsSince": 0,            "commitRange": [              {                "sha": "string",                "subject": "string",                "author": "string"              }            ]          }        ]      },      "snapshotContentId": "string",      "apps": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string"        }      ],      "routeKind": "main",      "state": "in_progress",      "nowLabel": "string",      "waitingOn": "string",      "startedBy": {        "kind": "user",        "id": "string",        "name": "string"      },      "startedAt": "2019-08-24T14:15:22Z",      "finishedAt": "2019-08-24T14:15:22Z",      "stages": [        {          "stageId": "4ac83d66-64fa-48da-9505-57df43404af7",          "stageName": "string",          "status": "pending",          "enteredAt": "2019-08-24T14:15:22Z"        }      ]    }  ],  "nextCursor": "string",  "total": 0,  "counts": {    "inProgress": 0,    "waiting": 0,    "landed": 0,    "rejected": 0  }}