Introduction
The Files API lets you upload, manage, and retrieve documents stored in Retab. Files are the foundation of document processing — once uploaded, a file can be referenced by ID across extractions, workflows, and projects without re-uploading. The module exposes four methods:| Method | Purpose |
|---|---|
upload | Upload a document and receive a persistent file_id for future reference. |
list | List uploaded files with pagination, filename prefix search, and MIME type filtering. |
get | Retrieve metadata for a single file by ID. |
get_download_link | Get a temporary signed URL (60 min) to download the original file. |
Uploading files
Files are uploaded asMIMEData objects — the same format used across the Retab API for documents:
The file data structure
Listing and filtering
Uselist to browse uploaded files with cursor-based pagination: