Upload an invoice, receipt, or bill. Get clean, structured JSON back in seconds. Powered by AI.
Try the APISend any PDF, image, or text file of an invoice or receipt to our API endpoint.
Our AI reads and understands the document, extracting vendor info, line items, totals, dates, and more.
Receive a clean, structured JSON response ready to feed into your accounting, ERP, or automation pipeline.
Names, full addresses, and contact information for both parties.
Each item with description, quantity, unit price, and line total.
Subtotal, tax rate, tax amount, discounts, total, and amount due.
Invoice number, dates (issued & due), payment terms, currency, and document type.
Get your API key and start extracting in under a minute.
# 1. Sign up and get your API key
curl -X POST https://docextract.onrender.com/billing/signup \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'
# 2. Extract data from an invoice
curl -X POST https://docextract.onrender.com/extract \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@invoice.pdf"
# Response
{
"success": true,
"data": {
"document_type": "invoice",
"vendor_name": "Acme Corp",
"invoice_number": "INV-2026-0042",
"total": 9765.00,
"currency": "USD",
"line_items": [...],
"confidence": 0.95
}
}
Upload a document and receive extracted data.
| Header | x-api-key: YOUR_API_KEY |
| Body | multipart/form-data with a file field |
| Formats | PDF, PNG, JPEG, GIF, WEBP, plain text |
| Max size | 10 MB |
Create an account and get an API key.
| Body | {"email": "you@example.com"} |
| Returns | Your API key (save it — shown only once) |
Check your usage and estimated charges.
curl -H "x-api-key: YOUR_API_KEY" https://docextract.onrender.com/billing/usage
Health check endpoint.
curl https://docextract.onrender.com/health
# {"status": "ok"}