---
title: "Analyze invoice document"
method: POST
path: "/api/invoices/analyze"
tags: ["Invoice Analysis"]
---

# Analyze invoice document

`POST /api/invoices/analyze`

## Request

- Base URL: `https://api.dokmatiq.com`
- URL: `https://api.dokmatiq.com/api/invoices/analyze`
- Auth: API key in header `X-API-Key`

Extracts structured invoice data from PDF, scanned PDF, invoice image, or DOCX.

This endpoint is intended as the central DocGen analysis service used by portals and
other products before XRechnung/ZUGFeRD generation. Missing and uncertain fields are
returned explicitly so callers can route the result through a manual review UI.

## Response `200`

OK

---

[API](https://skmtc.dev/dokmatiq/apis/docgen-api.md) · [All operations](https://skmtc.dev/dokmatiq/apis/docgen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dokmatiq/apis/docgen-api/revisions/3fa1a922764d?raw)
