Skip to main content

Overview

The Files API handles document upload, processing, and retrieval. Supports PDF, DOCX, PPTX, images, and more. Base Path: /api/files

Endpoints

Upload File

Upload a document for processing.
Content-Type: multipart/form-data Form Fields: Example Request:
Response (201 Created):

Get File

Get file metadata and status.
Example Request:
Response:

Download File

Download the original file.
Example Request:
Response: Binary file content

Get Processing Status

Check document processing status.
Response:
Status Values:
  • pending: Queued for processing
  • processing: Currently being processed
  • completed: Processing finished
  • failed: Processing error occurred

List Files

Get a paginated list of files.
Query Parameters: Example Request:
Response:

Delete File

Delete a file.
Example Request:
Response (204 No Content)

Processing Flow

Supported File Types

Extracted Data Structure

For CIMs

For Financial Statements

Examples

Upload with Frontend

Monitor Processing

Python Upload

Error Handling

Error Response:

Next Steps

Document Processing

Learn about the processing pipeline

Companies API

Associate files with companies

Reports API

Generate reports from extracted data

API Introduction

General API documentation