Create a durable batch input
POST
/api/v1/batch-inputs
const url = 'https://api.justcrawl.io/api/v1/batch-inputs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Examplegenerated
{}Responses
Section titled “Responses”Create a durable batch input.
Media typeapplication/json
object
id
required
string format: uuid
orgId
required
string format: uuid
state
required
string
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
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"}