{"service":"NF-e / Invoice Extractor API","version":"1.0.0","description":"Extract structured data from Brazilian NF-e XML files and PDF invoices.","endpoints":{"GET  /health":"API health check","POST /extract":"Upload a PDF or NF-e XML file (multipart/form-data, field: \"file\")","POST /extract/url":"Extract from a remote PDF or XML URL — body: { \"url\": \"https://...\" }","GET  /extract/status":"Extraction engine status and cache stats"},"supportedFormats":["NF-e XML (nfeProc or NFe)","PDF with selectable text (DANFE, invoices)"],"extractionMethods":{"xml_direct":"Deterministic NF-e XML parsing — 100% accurate for valid NF-e files","pdf_regex":"Regex pattern matching — works for most DANFE/Brazilian invoice layouts","pdf_ai":"Claude AI fallback — handles generic or international invoices"},"notes":["Scanned/image-based PDFs are not supported — use a PDF with selectable text.","NF-e XML extraction does not require AI — no extra cost per request.","Results are cached by file hash for 1 hour."]}