List or recover batch job runs
const url = 'https://api.justcrawl.io/api/v1/batch-job-runs?entryMode=api&phase=preparing&outcome=completed&sort=created&order=asc&limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.justcrawl.io/api/v1/batch-job-runs?entryMode=api&phase=preparing&outcome=completed&sort=created&order=asc&limit=50' \ --header 'Authorization: Bearer <token>'Requires jobs:read. Ordinary history filters by batchJobId, scheduleId, phase, outcome and entryMode. It orders by immutable creation time and ID, newest first by default, and returns per-entry cursorAfter and pageInfo. Cursors bind tenant, resource, filters and direction to a frozen creation upper key. A fresh traversal discovers later runs. Exact-key recovery is an exclusive indexed mode: supply submissionKey and optional entryMode (api by default) with no other filter, sort, direction, limit or cursor. Keys are nonempty strings of at most 256 characters, not necessarily UUIDs. Returns zero or one full summary, with no item cursorAfter and pageInfo={nextCursor:null,hasMore:false}, independent of recent history, source edits or quota. Another principal’s key returns RUN_SUBMISSION_CONFLICT (409). Every match retains id, entryMode and submissionKey. Zero matches means acceptance never committed: repeat the same start intent with the same key. Schedule namespaces are schedule_occurrence and schedule_run_now. Cron receipts have no manual principal and jobs:read may recover them.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Filter history by entry mode or select the namespace of an exact-key recovery.
Opaque cursor bound to tenant, resource, direction and unchanged filters. Start a fresh traversal to discover later runs.
Responses
Section titled “Responses”List or recover batch job runs.
Ordinary history entries have cursorAfter. Exclusive submissionKey recovery returns zero or one summary without cursorAfter and pageInfo {nextCursor:null,hasMore:false}.
object
object
object
Frozen for each run. Setting additional tags or inheritance requires urls:write; generated provenance tag prefixes are reserved.
object
object
object
Frozen for each run. Setting additional tags or inheritance requires urls:write; generated provenance tag prefixes are reserved.
object
Null until preparation measures the finite initial set. Measured zero is distinct.
object
object
object
Opaque scope-bound continuation after this exact entry; preserve it unchanged.
object
Opaque scope-bound continuation after this exact entry; preserve it unchanged.
Example
{ "items": [ { "entryMode": "api", "skipReason": "overlap", "definitionSnapshot": { "input": { "kind": "tags" } }, "input": { "kind": "tags" }, "phase": "preparing", "lane": "interactive", "stopReason": "credits_exhausted", "outcome": "completed", "fundingDetail": "no_plan", "partialCauses": [ "credits_exhausted" ] } ]}Validation failed — request body or query is missing/invalid
object
Example
{ "error": "Missing or invalid \"url\" field"}Missing or invalid authentication token
object
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
object
Example
{ "error": "No organization. Complete onboarding first."}Operation conflicts with current resource state
object
Example
{ "error": "Resource already exists"}Unexpected server error. Logs and PostHog $exception capture
object
Example
{ "error": "Something went wrong"}