Runs
Read the runs of a job or a whole project, and the attempts within each one.
The run object
{
"id": "01m3c081dbf3j55x7hsa7wc1yj",
"jobId": "01m3c081d2wj4g63qcr53pa1yh",
"scheduledFor": "2026-09-25T23:00:00Z",
"trigger": "schedule",
"status": "succeeded",
"attempts": 1,
"skippedBefore": 0,
"nextAttemptAt": null,
"firstAttemptAt": "2026-09-25T23:00:00.812Z",
"finishedAt": "2026-09-25T23:00:01.034Z",
"lastStatusCode": 200,
"lastError": "",
"lastErrorClass": "",
"createdAt": "2026-09-25T23:00:00.401Z"
}scheduledForstringWhen the run was due. For a run started with Run now, when it was started.
triggerstringscheduleormanual.statusstringpending,running,retry_wait,succeeded,failed, orcancelled. See Run statuses.attemptsintegerHow many attempts have been made.
skippedBeforeintegerHow many earlier occurrences were missed and folded into this run.
nextAttemptAtstring or nullWhen the next attempt is due, while the run is waiting to retry.
lastStatusCodeinteger or nullThe status your target answered the last attempt with.
nullwhen it did not answer.lastErrorstringWhat went wrong in the last attempt, when it failed.
lastErrorClassstringWhy the last attempt failed. See Why attempts fail.
List runs
/v1/projects/{project}/jobs/{job}/runsReturns the job’s runs from the last 30 days, newest first, a page at a time. See Paging.
List a project’s runs
/v1/projects/{project}/runsReturns the runs of every job in the project from the last 30 days, newest first, a page at a time. Narrow the list with any of these query parameters:
jobstringOnly this job’s runs.
statusstringOnly runs with this status:
pending,running,retry_wait,succeeded,failed, orcancelled.triggerstringOnly runs started this way:
scheduleormanual.
Read a run
/v1/projects/{project}/jobs/{job}/runs/{run}Returns the run with attemptList, one entry for each attempt:
numberintegerThe attempt number, from 1.
startedAtstringWhen the call was made.
durationMsintegerHow long the call took, in milliseconds.
statusCodeinteger or nullThe status your target answered with.
errorClassstringWhy the attempt failed, or empty when it succeeded.
errorstringWhat went wrong, or empty when it succeeded.
responseExcerptstringThe first 4 KB of your target’s answer.
Last updated