Skip to content

List schedule runs

GET
/api/v1/schedules/runs
Code sample: cURL
curl -X GET 'https://api.justcrawl.io/api/v1/schedules/runs?limit=20' \
-H 'Authorization: Bearer $JUSTCRAWL_API_KEY'

Returns recent schedule executions across the org, newest first, as the existing array. kind=batch rows carry runId=id, current phase/outcome, skip reason/blocker and live counters. kind=legacy rows retain frozen job counts with null runId/phase/outcome/skip fields and no job drill-down. scheduleId is null after deletion; new runs keep their frozen schedule name. jobsCreated/domainJobsCreated remain history counters, never trigger acceptance output. runId filters either ID space; domain counts new rows through durable run membership.

scheduleId
string format: uuid

Only return runs of this schedule.

runId
string format: uuid

Look up one batch run or legacy history row by its ID.

domain
string

Include a domain-specific job count for batch rows through run membership; legacy domain counts are null.

search
string

Free-text match against the schedule name.

kind
string
Allowed values: batch legacy

Include only this kind of history row before applying the requested limit.

limit
integer
default: 50 >= 1 <= 200

Maximum runs to return. Values above 200 are clamped.

Matching schedule runs, newest first.

Media typeapplication/json
Array<object>
object
id
required
string format: uuid
orgId
required
string format: uuid
scheduleId
required
string format: uuid
nullable
scheduleName
required
string
startedAt
required
string format: date-time
createdAt
required
string format: date-time
kind
required
string
Allowed values: batch legacy
runId
required
string format: uuid
nullable
phase
required
string
nullable
Allowed values: preparing expanding draining terminal
outcome
required
string
nullable
Allowed values: completed partial failed skipped
skipReason
required
string
nullable
Allowed values: overlap workflow_unresolved
blockingRunId
required
string format: uuid
nullable
blockingRunAgeSeconds
required
number
nullable
jobsCreated
required
integer
domainJobsCreated
required
integer
nullable
jobsCompleted
required
integer
nullable
jobsFailed
required
integer
nullable
jobsInProgress
required
integer
nullable
Example
[
{
"kind": "batch",
"phase": "preparing",
"outcome": "completed",
"skipReason": "overlap"
}
]

Invalid scheduleId, runId, kind or limit.

Missing or invalid authentication token

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

Insufficient permissions for this operation

Media typeapplication/json
object
error
string
Example
{
"error": "No organization. Complete onboarding first."
}

Unexpected server error. Logs and PostHog $exception capture

Media typeapplication/json
object
error
string
Example
{
"error": "Something went wrong"
}