API Documentation
Integrate DocProcessor into your applications
Base URL
# Base URL
https://api.docprocessor.com
https://api.docprocessor.com
Authentication
Authenticate requests by including your API key in the Authorization header:
# Example
curl -X POST https://api.docprocessor.com/api/v1/extract/
-H "Authorization: Bearer YOUR_API_KEY"
-F "files=@document.pdf"
-F "schema={'properties':{'field':'type'}}"
curl -X POST https://api.docprocessor.com/api/v1/extract/
-H "Authorization: Bearer YOUR_API_KEY"
-F "files=@document.pdf"
-F "schema={'properties':{'field':'type'}}"
Core Endpoints
POST
/api/v1/extract/
Create a new document extraction request.
# Request (multipart/form-data)
files: File[] # PDF, Excel, or Word files
schema: string # JSON Schema as string
webhook_url: string (optional) Callback URL
# Response
{ "request_id": "req_abc123", "status": "pending", "message": "Extraction request created" }
files: File[] # PDF, Excel, or Word files
schema: string # JSON Schema as string
webhook_url: string (optional) Callback URL
# Response
{ "request_id": "req_abc123", "status": "pending", "message": "Extraction request created" }
GET
/api/v1/extract/requests/{request_id}
Get extraction results by request ID.
# Response
{ "request_id": "req_abc123", "status": "completed", "data": {
"loan_amount": 500000,
"dti": 32.4,
"borrower_name": "John Smith"
}, "sources": { ... }, "contradictions": [ ... ] }
{ "request_id": "req_abc123", "status": "completed", "data": {
"loan_amount": 500000,
"dti": 32.4,
"borrower_name": "John Smith"
}, "sources": { ... }, "contradictions": [ ... ] }
GET
/api/v1/extract/requests
List all extraction requests for the authenticated user.
GET
/api/v1/schemas/templates
List predefined schema templates (loan, insurance, due_diligence).
GET
/api/v1/subscriptions/current
Get current subscription status.
Error Codes
400
Bad Request - Invalid parameters or schema
401
Unauthorized - Invalid or missing API key
403
Forbidden - Access denied to this resource
404
Not Found - Resource does not exist
429
Too Many Requests - Rate limit exceeded