Skip to main content
POST /api/v1/e/{slug} Run a custom extractor on a document file. Extractors are pre-configured pipelines that extract specific data from documents and return structured output (JSON, CSV, XML, or Markdown).

Request

Headers

string
required
Bearer token authentication. Example: Bearer YOUR_API_KEY

Path Parameters

string
required
The unique slug identifier of the extractor (e.g., invoice-extractor)

Body Parameters

file
The document file to process. Supported formats: PDF, DOCX, PNG, JPG, JPEG, WEBP, GIF.
Provide either file or url, not both.
string
URL to download the document from. The file will be fetched and processed.
Provide either file or url, not both.
string
Webhook URL to receive a POST request when extraction completes.

Example Request

From URL

Response

Example Responses

Webhooks

If callback_url is provided, you’ll receive a POST request when extraction completes:

Polling for Results

After running an extractor, poll Get Document until status is COMPLETED:

Extractor Output Formats

Extractors can output data in different formats: The output format is determined by the extractor configuration.
Each extractor is designed for specific document types. Using an invoice extractor on a resume may produce incomplete or incorrect results.