Document Processing API
Upload, analyze, and extract structured data from tax documents using our AI-powered OCR engine.
/v1/documents/upload
Upload a tax document file for asynchronous processing. The API accepts standard image formats and PDFs up to 10MB.
Attributes
fileREQUIREDThe binary file content to be uploaded. Supported formats: PDF, JPG, PNG.
typeOPTIONALA hint for the document type to improve classification accuracy.w21099receipt
curl https://api.taxu.io/v1/documents/upload \
-H "Authorization: Bearer sk_test_..." \
-F "file=@w2_2024.pdf" \
-F "type=w2"{
"id": "doc_1234567890",
"object": "document",
"created": 1704067200,
"status": "processing",
"file_name": "w2_2024.pdf"
}/v1/documents/:id
Retrieves the details of an existing document. If the document processing is complete, the extracted data will be included in the response.
Parameters
idREQUIREDThe unique identifier of the document to retrieve.
curl https://api.taxu.io/v1/documents/doc_123456 \
-H "Authorization: Bearer sk_test_..."{
"id": "doc_1234567890",
"status": "completed",
"document_type": "w2",
"confidence": 0.98,
"extracted_data": {
"employer": "ACME CORP",
"ein": "12-3456789",
"wages": 75000.00,
"federal_tax": 12500.00,
"ss_wages": 75000.00
}
}/v1/documents/:id
Permanently deletes a document and all its extracted data. This action cannot be undone.
curl -X DELETE https://api.taxu.io/v1/documents/doc_123...{
"id": "doc_1234567890",
"deleted": true
}Supported Document Types
Our AI model is trained on millions of tax documents to ensure high accuracy across various formats.
W-2 Forms
Standard wage and tax statements from employers. Support for multi-page PDFs.
1099 Series
Includes 1099-NEC, 1099-MISC, 1099-INT, and 1099-DIV forms.
Bank Statements
Extracts transactions, balances, and account info from major bank PDFs.
AI Processing Details
Processing Time
Most documents process in 5-15 seconds. Complex or multi-page PDFs may take up to 30 seconds.
Accuracy Score
Every field returns a confidence score (0-1.0). We recommend manual review for scores below 0.85.