Skip to Content

Upload documents

Upload a file to recover its content, then use the result in the portal or your application. Each file becomes a document with its own pages and results.

Upload in the portal

Open Playground and drop in your files, or select Choose files. You can select up to 20 files at a time. Each document has its own progress card; select View document when its result is ready.

New uploads inherit any workspace classification defaults. You can also classify a document after recovery finishes.

Open Documents to return to files you've processed. The portal quickstart introduces the result view and Search.

Upload with the SDK

After setting up the SDK, pass a local file path to documents.create:

const result = await client.documents.create({ file: "statement.pdf" })

The call uploads the document and waits for its complete result. For work that should continue in the background, use jobs.create instead.

You can also pass a File, Blob, Uint8Array, or Node.js Buffer. A path supplies its basename and a File supplies its name. For a Blob or byte array, include a filename:

import { readFile } from "node:fs/promises"

const bytes = await readFile("statement.pdf")
const result = await client.documents.create({
  file: bytes,
  filename: "statement.pdf",
})

Use filename to override a path's basename when you want a different name in the portal and results. Supply a filename such as statement.pdf, without directory separators.

Connect documents to your records

Include your application's reference when submitting a file:

const result = await client.documents.create({
  file: "statement.pdf",
  externalId: "application-1042-statement",
  externalGroupId: "application-1042",
})

externalId identifies the submission in your application. externalGroupId can associate related submissions, such as documents belonging to the same application. Surrounding whitespace is removed and blank identifiers are rejected. Case and internal characters are preserved. These values appear in job status and webhook events. They do not combine files or prevent duplicate submissions.

For retries of the same submission, pass a stable idempotencyKey. Reuse it with the same request instead of creating a new key each time. The SDK creates a key automatically when you omit one and reuses it for its own retries. An external reference and an idempotency key serve different purposes.

Choose a suitable file

See Supported files and limits for accepted formats. The service accepts PDFs, supported still images, office documents, and presentations. The maximum file size is 100 MiB, subject to your workspace's allowance, and a document can contain up to 800 pages. Selecting multiple files does not combine their limits.

For PDFs, page count follows the file. A supported still image is one page. Office documents use the pages produced by conversion. Files that cannot be opened or exceed the applicable limits are rejected; a filename extension alone does not establish that a file is supported.

Use a clear original when you have one. Difficult scans and phone photos are supported, but cropping out information or obscuring it can leave less content to recover.

Once processing finishes, read and use the result. The SDK reference lists submission options and return types.

On this page