Sazabi
APIAutomations

List automation runs

GET
/automations/{automationId}/runs

List runs for an automation, most recent first.

Path Parameters

automationId*string

Automation ID.

Formatuuid

Query Parameters

projectId?string

Project that owns the automation. Auto-filled from CLI and SDK context when omitted.

Formatuuid
status?|array<>

Filter runs by status. Accepts a single status or an array of statuses (matched as OR).

cursor?string

Cursor from a previous response's nextCursor to fetch the next page.

limit?integer

Maximum number of runs to return per page.

Range1 <= value <= 100
Default50

Response Body

application/json

curl -X GET "https://example.com/automations/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs"
{  "runs": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "automationRunKey": "string",      "status": "running",      "startedAt": "2019-08-24T14:15:22Z",      "completedAt": "2019-08-24T14:15:22Z",      "durationMs": -9007199254740991,      "exitCode": -9007199254740991,      "scheduledAt": "2019-08-24T14:15:22Z",      "dueAt": "2019-08-24T14:15:22Z",      "errorMessage": "string"    }  ],  "nextCursor": "string",  "recordedHistoryStartsAt": "2019-08-24T14:15:22Z"}