Skip to main content

Upload files

Open Files and upload one or more files into your default channel. Processing runs asynchronously.

File vs document

  • A file is the stored upload.
  • A document is one logical result after Documate identifies types and splits the file (for example one invoice and two tickets inside a PDF).
Open a file to see its child documents, types, and statuses. A document that could not be matched to a type mapped on the channel fails as unidentified. See Identify document types. Partner API file list and get (GET /api/v1/queues/{queueId}/files, GET /api/v1/files/{fileId}) include pageCount: the number of pages in the original PDF (or image). It is set after normalize and is null until then. Get-by-id also returns child documents when they exist.

Download URLs

downloadUrl on a file is the original upload. It stays on the file. downloadUrl on a document is that document’s PDF. On list documents (GET /api/v1/queues/{queueId}/documents), get document, and each child document on get file, it is null until the document PDF is stored. The link is never the file downloadUrl. When the file is one document and that document covers every page, the PDF bytes may equal the upload. Use the file downloadUrl, or GET /api/v1/files/{fileId}/content, for the pack. Use GET /api/v1/documents/{documentId}/content for the document PDF once the document is ready.

Review results

When a document is Ready, open it to view extracted fields and tables. You can also download content when a download link is available.

Reset and reprocess

From file detail you can reset or reprocess when you need Documate to run extraction again. Prefer a test file while you tune agents so production data stays clean. A file reset runs the whole file again. Each new document sends document.ready or document.failed. file.completed is not sent again if it already succeeded for that file. A document reset (partner API POST /api/v1/documents/{documentId}/reset) re-runs that document only. Completion sends document.ready or document.failed for that document, with a new event_id (:r1, :r2, …). Other documents are not sent again, and file.completed is not sent. See Events and notifications.