TaxuDOCS
Get startedPaymentsRevenuePlatformsResources
⌘K
DashboardSign in

Products

  • Pricing
  • Tax Filing
  • Accounting
  • AI Agents

Solutions

  • Individuals
  • Businesses
  • Accountants
  • Partners

Developers

  • Documentation
  • API reference
  • API status
  • SDKs

Resources

  • Support
  • Blog
  • Security

Company

  • About
  • Careers
  • Contact

Legal

  • Privacy
  • Terms
Taxu
© 2025 Taxu•IRS e-file Certified•SOC 2 Type II
HomeAccountingBankingReports

Document API

  • Upload Document
  • Retrieve Document
  • Delete Document

Reference

  • Supported Types
  • Processing Details
On this page
REST APIv1

Document Processing API

Upload, analyze, and extract structured data from tax documents using our AI-powered OCR engine.

POST

/v1/documents/upload

Upload a tax document file for asynchronous processing. The API accepts standard image formats and PDFs up to 10MB.

Attributes

fileREQUIRED

The binary file content to be uploaded. Supported formats: PDF, JPG, PNG.

typeOPTIONAL

A hint for the document type to improve classification accuracy.
w21099receipt

Request
curl https://api.taxu.io/v1/documents/upload \
-H "Authorization: Bearer sk_test_..." \
-F "file=@w2_2024.pdf" \
-F "type=w2"
Response200 OK
{
  "id": "doc_1234567890",
  "object": "document",
  "created": 1704067200,
  "status": "processing",
  "file_name": "w2_2024.pdf"
}

GET

/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

idREQUIRED

The unique identifier of the document to retrieve.

Request
curl https://api.taxu.io/v1/documents/doc_123456 \
-H "Authorization: Bearer sk_test_..."
Response200 OK
{
  "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
  }
}

DELETE

/v1/documents/:id

Permanently deletes a document and all its extracted data. This action cannot be undone.

Request
curl -X DELETE https://api.taxu.io/v1/documents/doc_123...
Response200 OK
{
  "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.

Webhook Events

Real-time updates

document.processed
Active
document.failed
Active
Configure Webhooks