Skip to main content

Intake API

Durable single-file and batch intake

๐Ÿ“„๏ธValidate two to one hundred originals as a durable intake batch

Files are processed and returned in request order. The batch envelope and item identities are durable, so repeating an identical ordered request with the same Idempotency-Key resumes or replays it. A changed filename, order, or content under that key returns 409. An intake rejection has null documentId/taskId plus a bounded error. A durable acceptance always preserves non-null documentId/taskId; while processing is active its error is null, and if processing later exhausts retries the replay preserves both IDs alongside the bounded error so clients recover the existing document rather than uploading it again.

๐Ÿ“„๏ธCreate or recover a durable resumable-upload session

Implements TUS 1.0 creation. Upload-Length is a declared original length, not a Jiandu product limit. Upload-Metadata carries base64 filename, optional conventional filetype (or Jiandu contentType), and allowDuplicate fields. Retrying an identical Idempotency-Key returns the original session Location. Replaying an accepted session requires current documents.read permission and access to its document; an unreadable accepted session returns 404.