Skip to content

DocMap APIPDF에서 구조화된 데이터 추출

간단한 REST 엔드포인트를 제공하는 AI 기반 문서 추출 API

빠른 예제

단일 API 호출로 PDF에서 구조화된 데이터를 추출합니다:

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"
  }'

API는 템플릿 정의에 맞는 구조화된 JSON을 반환합니다:

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 문서