# Parsefox documentation

> Turn documents into JSON that follows your schema, with the source of every value.

Parsefox is a document extraction API. You upload a PDF, Word file, spreadsheet or
image, say which fields you want with a JSON Schema, and get back JSON in exactly that
shape. Every value comes with the quote and location it was read from and a status that
tells you whether it was verified against the document.

## How it works

1. **Upload** the file: `POST /v1/documents` returns a `document_id`.
2. **Extract**: `POST /v1/extractions` with the document and a schema starts an
   asynchronous job.
3. **Get notified** by a signed webhook, or wait on the job.
4. **Read the result**: `GET /v1/extractions/{job_id}/result` returns `data` plus
   per-field `status` and `sources`.
5. **Handle review**: fields Parsefox could not verify are listed in
   `unresolved_fields`, so your system can route them to a person instead of trusting
   a guess.

## Start here

- [Quickstart](/docs/quickstart.md): your first extraction with curl, Python or
  TypeScript in five minutes.
- [Use Parsefox with a coding agent](/docs/agents.md): instructions and a skill your
  agent can follow on its own.
- [Integrate into a pipeline](/docs/pipeline.md): the production flow with webhooks,
  retries and review handling.

## Basics

- Base URL: `https://parsefox.dev`. All endpoints live under `/v1`.
- Authenticate with `Authorization: Bearer <key>` (or `X-API-Key: <key>`). Create keys
  in the console under **API keys**.
- **Test keys** (`pf_test_…`) are free and return sample values without reading the
  document. **Live keys** (`pf_live_…`) run real extractions and use credit. See
  [Test mode](/docs/test-mode.md).
- Requests and responses are JSON, except file uploads (multipart). Errors share one
  shape; see [Errors](/docs/errors.md).
- Supported files: PDF, PNG, JPEG, TIFF, DOCX and Excel (XLSX, XLSM, XLSB, XLS).

## Machine-readable docs

- [`/llms.txt`](https://parsefox.dev/llms.txt) — index of these pages for language models.
- [`/llms-full.txt`](https://parsefox.dev/llms-full.txt) — every page in one file.
- Every page is also available as Markdown: add `.md` to its URL, such as
  [`/docs/quickstart.md`](/docs/quickstart.md).
- [`/openapi.json`](https://parsefox.dev/openapi.json) and the interactive
  [API reference](/docs/api).
