Skip to content

Create a durable batch input

POST
/api/v1/batch-inputs
curl --request POST \
--url https://api.justcrawl.io/api/v1/batch-inputs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'

Requires urls:write and verified email. Send an empty JSON object; authority fields and entries are rejected. Returns open metadata only. Append bounded numbered chunks, retain their receipts and seal the input before starting a run. Metadata never materializes all URLs.

Media typeapplication/json
object
Examplegenerated
{}

Create a durable batch input.

Media typeapplication/json
object
id
required
string format: uuid
orgId
required
string format: uuid
state
required
string
Allowed values: open sealed
chunkCount
required
integer
entryCount
required
integer
acceptedCount
required
integer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
sealedAt
required
string format: date-time
nullable
Example
{
"state": "open"
}

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