Seal a durable batch input
POST
/api/v1/batch-inputs/{id}/seal
const url = 'https://api.justcrawl.io/api/v1/batch-inputs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/seal';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"chunkCount":1,"entryCount":1}'};
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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/seal \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "chunkCount": 1, "entryCount": 1 }'Requires urls:write and verified email. Declared totals must match stored receipts and chunks must be contiguous from ordinal zero. entryCount includes rejected entries. Incomplete inputs return 400; matching repeated seals return the same frozen metadata. A sealed input can be counted or bound to a definition/run. This operation never returns the stored URL list.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
chunkCount
required
integer
entryCount
required
Submitted entries including rejected entries; chunks must be consecutive from zero.
integer
Examplegenerated
{ "chunkCount": 1, "entryCount": 1}Responses
Section titled “Responses”Seal 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."}Resource not found
Media typeapplication/json
object
error
string
Example
{ "error": "Workflow not found"}Unexpected server error. Logs and PostHog $exception capture
Media typeapplication/json
object
error
string
Example
{ "error": "Something went wrong"}