Skip to content

Seal a durable batch input

POST
/api/v1/batch-inputs/{id}/seal
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.

id
required
string format: uuid
Media typeapplication/json
object
chunkCount
required
integer
<= 9007199254740991
entryCount
required

Submitted entries including rejected entries; chunks must be consecutive from zero.

integer
<= 9007199254740991
Examplegenerated
{
"chunkCount": 1,
"entryCount": 1
}

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

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