Skip to content

DocMap APIExtract structured data from PDFs

AI-powered document extraction API with simple REST endpoints

Quick Example

Extract structured data from a PDF with a single API call:

bash
curl -X POST https://api.docmap.io/v1/extractions/run \
  -H "Authorization: Bearer dm_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "your-template-id",
    "fileName": "invoice.pdf",
    "pdfBase64": "JVBERi0xLjQ...",
    "mimeType": "application/pdf"
  }'

The API returns structured JSON matching your template definition:

json
{
  "id": "ext_abc123",
  "status": "completed",
  "data": {
    "vendor_name": "Acme Corp",
    "invoice_number": "INV-2024-001",
    "total_amount": 1250.00,
    "line_items": [
      { "description": "Widget A", "quantity": 10, "unit_price": 125.00 }
    ]
  }
}

DocMap API Documentation