Complete guide to integrating Doc-Vision via REST API, Email, and Webhooks for automated document extraction
The DocVision API lets you programmatically upload documents, retrieve AI-extracted structured data, and manage your document pipeline. Whether you're building an automated accounts payable workflow, a document processing microservice, or connecting to an ERP system, the API provides everything you need.
Key benefits:
DocVision offers three ways to integrate with your documents:
| Method | Best For | Setup Time |
|---|---|---|
| REST API | Programmatic integrations, automation pipelines | 5 minutes |
| Manual forwarding, email-based workflows | 1 minute | |
| Webhooks | Real-time notifications when processing completes | 10 minutes |
Get up and running in under 5 minutes:
1. Get your credentials from Organization Settings - you'll need your webhookId and optionally a webhook secret.
2. Upload a document:
curl -X POST https://app.doc-vision.com/api/webhook/{webhookId}/document/upload \
-H "Authorization: {your-webhook-secret}" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/invoice.pdf"}'
3. Poll for results (or use webhook callbacks):
curl "https://app.doc-vision.com/api/webhook/{webhookId}/document/get?docId={documentId}" \
-H "Authorization: {your-webhook-secret}"
4. Get structured JSON with all extracted fields and line items.
For a complete working example with error handling and polling logic, see the Upload + Polling Example.
The API provides three core endpoints for document management:
POST /api/webhook/{webhookId}/document/upload
Upload documents via URL (recommended), multipart form data, or base64. The endpoint returns a documentId immediately - extraction happens asynchronously.
curl -X POST https://app.doc-vision.com/api/webhook/{webhookId}/document/upload \
-H "Authorization: {your-webhook-secret}" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/documents/invoice.pdf"
}'View full Upload API documentation →
GET /api/webhook/{webhookId}/document/get?docId={docId}
Retrieve document status and extracted data by document ID. Returns extraction status, header fields, and line item tables.
curl "https://app.doc-vision.com/api/webhook/{webhookId}/document/get?docId=doc_abc123xyz" \
-H "Authorization: {your-webhook-secret}"View full Get API documentation →
POST /api/webhook/{webhookId}/document/delete
Permanently delete a document and all associated data including extracted fields, search index entries, and files.
curl -X POST https://app.doc-vision.com/api/webhook/{webhookId}/document/delete \
-H "Authorization: {your-webhook-secret}" \
-H "Content-Type: application/json" \
-d '{
"docId": "doc_abc123xyz"
}'View full Delete API documentation →
All endpoints require your {webhookId} from Organization Settings.
Optionally configure a webhook secret and include it in the Authorization header:
Authorization: {your-webhook-secret}When you upload a document, it goes through an automated AI-powered pipeline:
PARTIAL) - AI identifies the document type (invoice, receipt, bank statement, etc.)EXTRACTED) - AI extracts all fields and line items based on your Extraction TemplateINDEXED) - Extracted data is indexed for search and the document is readyAverage processing time is 30 seconds per page. You can check the status by polling the Get API or by setting up Webhook Callbacks for automatic notifications.
| Format | Types | Notes |
|---|---|---|
| Any PDF document | Scanned and digital PDFs supported | |
| Images | JPG, JPEG, PNG, GIF, WebP, TIFF | Photos of documents work too |
| Spreadsheets | XLS, XLSX, XLSM, CSV | Auto-converted to CSV text format |
Upload invoices via API, extract vendor details, line items, and amounts, then push structured data to your ERP or accounting system.
Forward emails with document attachments to your organization email address, receive extracted data via webhook callbacks.
Upload documents of unknown types - DocVision automatically classifies them and applies the correct Extraction Template.
Average processing time is 30 seconds per page. Complex multi-page documents may take longer. See FAQ for details.
Vision OCR+ MAX achieves 99.8% accuracy on average. See Pricing for model comparison.
Yes. Upload multiple documents in parallel - each upload returns immediately with a documentId. Use polling or webhooks to collect results.
50+ languages with automatic detection. No configuration needed.
On This Page
What is the Doc-Vision API?Integration MethodsQuick StartAPI Endpoints1. Upload Document2. Get Document3. Delete DocumentAuthenticationDocument Processing PipelineSupported File TypesBest PracticesCommon Integration PatternsAccounts Payable AutomationEmail-to-Data PipelineDocument Classification ServiceFrequently Asked QuestionsHow long does extraction take?What accuracy can I expect?Can I process documents in bulk?What languages are supported?Next Steps