Skip to main content

Prerequisites

Before you begin, make sure you have:

API Key

Get your API key from the Platform

SDK or HTTP Client

Install the official SDK or use curl/fetch

Step 1: Install the SDK

Step 2: Basic Document Extraction

Extract content from a document URL:

Step 3: Uploading Files Directly

/extract accepts file uploads directly via multipart/form-data:
Use file for direct uploads or file_url when you have a public/presigned URL.

Step 4: Asynchronous Processing for Large Documents

For documents over 50 pages or when processing multiple files, use async: true on the /extract endpoint:
POST /extract_async is deprecated. Use POST /extract with async: true instead. See Async Processing for details.

Common Use Cases

Extract structured data from invoices:
Extract key terms from contracts:
Extract structured content from academic papers:

Next Steps

Schema Extraction

Apply schemas to extracted documents

Route by Document Type

Classify mixed intake before extracting

Large Documents

Best practices for big files

Async Processing

Async flag, polling, and webhooks

API Reference

Explore all endpoints