Pull specific fields from a document into a typed schema.
Accepts either a file upload (multipart/form-data) or a document URL (JSON body), plus a JSON Schema describing what to extract.
Sync mode (default): blocks until extraction is complete, returns 200 with full result.
Async mode (options.async=true): returns 202 immediately with a job ID. Poll GET /v3/extract/{id} until status is completed or failed.
Sync limits: 20 MB file size, 15 pages.
Async limits: 100 MB file size, 1000 pages.
Documentation Index
Fetch the complete documentation index at: https://developers.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body for POST /api/v3/extract.
schema is the JSON Schema that drives extraction. It arrives as a dict
on JSON requests and as a JSON-encoded string on multipart requests — both
are coerced to dict.
options is a free-form dict; currently supports {"async": bool}.