Append a durable input chunk
const url = 'https://api.justcrawl.io/api/v1/batch-inputs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/chunks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ordinal":1,"entries":["example"]}'};
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/chunks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ordinal": 1, "entries": [ "example" ] }'Requires urls:write and verified email. Append at most 1,000 string entries; the serialized UTF-8 envelope JSON.stringify({inputId,ordinal,entries}) must fit 256 KiB, including overhead. Ordinals and rejected entry positions are zero-based. Retain exact source entries for replay. Re-sending the identical chunk returns its immutable receipt, even after sealing; different entries at the same ordinal or a new append to sealed input returns 409. The receipt contains the canonical-result digest, submitted/accepted counts and rejected positions, never URL data.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”At most 1,000 entries and 256 KiB UTF-8 for JSON.stringify({ inputId, ordinal, entries }), including envelope overhead. Ordinals are zero-based. Replaying identical entries returns the original receipt, including after seal; changed entries at the same ordinal conflict.
object
Examplegenerated
{ "ordinal": 1, "entries": [ "example" ]}Responses
Section titled “Responses”Append a durable input chunk.
object
Zero-based positions within the submitted chunk.
Digest of canonical accepted entries and rejected ordinals; retain the exact request for replay.
Examplegenerated
{ "ordinal": 1, "entryCount": 1, "acceptedCount": 1, "rejectedOrdinals": [ 1 ], "digest": "example"}Validation failed — request body or query is missing/invalid
object
Example
{ "error": "Missing or invalid \"url\" field"}Missing or invalid authentication token
object
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
object
Example
{ "error": "No organization. Complete onboarding first."}Resource not found
object
Example
{ "error": "Workflow not found"}Operation conflicts with current resource state
object
Example
{ "error": "Resource already exists"}Unexpected server error. Logs and PostHog $exception capture
object
Example
{ "error": "Something went wrong"}