Skip to content

List reusable batch jobs

GET
/api/v1/batch-jobs
curl --request GET \
--url 'https://api.justcrawl.io/api/v1/batch-jobs?kind=standard&sort=created&order=asc&limit=50' \
--header 'Authorization: Bearer <token>'

Requires jobs:read. Returns visible standard, schedule and dataset definitions with per-entry cursorAfter and pageInfo. Omit kind to include every visible kind. Hidden ad-hoc definitions stay excluded. The default is creation time descending. Every sort uses the definition ID in the same direction to resolve ties. Each cursor binds the tenant, filters, sort and direction. Its upper key records the newest creation time and ID at the start, even when paging by name or update time. Edits to a definition can move it within a name or updated traversal. Use a fresh traversal for later definitions. A continuation from an unusually long name needs that definition to retain its name and remain visible. Start again after invalid_cursor (400).

kind
string
Allowed values: standard schedule dataset
workflowId
string format: uuid
sort
string
default: created
Allowed values: created updated name
order
string
default: desc
Allowed values: asc desc
limit
integer
default: 50 >= 1 <= 100
cursor
string

Opaque cursor bound to tenant, resource, sort, direction and unchanged filters. Start a fresh traversal to discover later definitions.

List reusable batch jobs.

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
kind
required
string
Allowed values: standard schedule dataset
datasetAgentId
required

Immutable dataset owner identity. Output only; it remains protected after owner deletion.

string format: uuid
nullable
workflowVersion
required

Stored dataset workflow version, selected by provisioning. Null for other definition kinds.

integer
nullable >= 1
name
required
string
>= 1 characters <= 256 characters
workflowId
required
string format: uuid
nullable
input
required
One of:
object
kind
required
string
Allowed values: tags
tags
required
Array<string>
discoveryPolicy
required

Frozen for each run. Setting additional tags or inheritance requires urls:write; generated provenance tag prefixes are reserved.

object
additionalTags
required
Array<string>
inheritParentTags
required
boolean
creatorUserId
required
string format: uuid
nullable
creatorAgentId
required
string format: uuid
nullable
creatorTurnId
required
string format: uuid
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
cursorAfter
required

Opaque scope-bound continuation after this exact entry; preserve it unchanged.

string
pageInfo
required
object
nextCursor
required

Opaque scope-bound continuation after this exact entry; preserve it unchanged.

string
nullable
hasMore
required
boolean
Example
{
"items": [
{
"kind": "standard",
"input": {
"kind": "tags"
}
}
]
}

Validation failed — request body or query is missing/invalid

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid \"url\" field"
}

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"
}