We’ll walk through extracting structured fields from a single document end to end. For parsing documents into Markdown chunks instead, see the Parse Quickstart.Documentation Index
Fetch the complete documentation index at: https://docs.unsiloed.ai/llms.txt
Use this file to discover all available pages before exploring further.
Before You Start
- Get an Unsiloed AI API key by signing up.
- Have a document to extract fields from (PDF, DOCX, PPTX, JPG, PNG, etc.).
- Know what fields you want. See the Schemas reference for the JSON Schema rules.
- Optionally generate the schema from the Unsiloed dashboard instead of writing it by hand.
Keep your API key out of source control. The examples below read it from the
UNSILOED_API_KEY environment variable.1. Submit a Document With a Schema
The/v2/extract endpoint accepts a multipart upload with two fields: pdf_file (the document) and schema_data (the JSON schema as a string). It returns a job_id you can poll for results. All requests go to https://prod.visionapi.unsiloed.ai with your key in the api-key header.
The JavaScript example uses ES modules (top-level
await, import). Save it as script.mjs or add "type": "module" to your package.json. You’ll also need Node.js 18 or newer, which exposes fetch, FormData, and Blob as globals.job_id you need for the next step:
2. Poll for Results
PollingGET /extract/{job_id} returns the job’s current state. A status of completed indicates the result is ready, failed indicates the job errored, and any other value (such as processing) means the job is still running.
Response Shape
A completed extraction response contains job metadata plus aresult object with one entry per schema field. Each entry has the extracted value and a score between 0 and 1. For array fields, the array itself has a score, and each property inside the array’s objects carries its own as well.
Next Steps
Schemas
JSON Schema rules and worked examples for invoices and SEC filings.
Response Format
The canonical extraction response shape with a field-by-field reference.
API Reference
Browse the full request and response specs for
/v2/extract.FAQ
Check limits, supported formats, and answers to common questions.

