Skip to main content
Developer API

Document Extraction API

Simple REST API for document extraction. Send a file, get structured JSON. No SDKs to install, no complex setup. Integrate with any language, any platform.

One Endpoint. That's It.

POST https://api.docxtract.rpatech.ai/v1/extract

// Request
{
  "file": "<base64_encoded_pdf>",
  "document_type": "invoice",
  "model": "standard"
}

// Response
{
  "status": "success",
  "document_id": "doc_abc123",
  "data": {
    "invoice_number": "INV-2025-0042",
    "vendor": { "name": "ABC Corp", "gstin": "27AABCU9603R1ZM" },
    "line_items": [...],
    "total": 25900.00
  },
  "confidence": 0.97,
  "processing_time_ms": 2340
}

Why Teams Struggle

Complex SDKs

Other APIs require heavy SDKs, authentication libraries, and platform-specific code. Weeks of integration work.

Slow Response

Batch-only processing means waiting hours for results. No real-time extraction for interactive workflows.

Unpredictable Output

Schema changes between versions. Missing fields. Nested structures that vary by document. Parsing nightmares.

Developer-First Design

Sync & Async

Synchronous for real-time (<5s). Async with webhooks for batch processing. You choose.

Consistent Schema

Same JSON structure across all document types. Predictable output, easy parsing.

Simple Auth

API key in header. No OAuth flows, no token refresh, no session management.

Idempotent

Safe retries with request IDs. No duplicate processing, no lost documents.

Rate Limits

Generous limits with clear headers. Burst support for spiky workloads.

Webhooks

Get notified when async processing completes. No polling required.

Integrates With Everything

Works with your existing tech stack. No platform lock-in.

Python
Node.js
Java
C# / .NET
PHP
Go
UiPath
Power Automate
Automation Anywhere
Zapier

Sample API Response

Structured data ready for your ERP, RPA, or database

{
  "status": "success",
  "document_id": "doc_7f8a9b2c",
  "document_type": "invoice",
  "model_used": "standard",
  "data": {
    "invoice_number": "GST/2025/001234",
    "invoice_date": "2025-01-20",
    "vendor": {
      "name": "Tech Solutions Pvt Ltd",
      "gstin": "29AABCT1332L1ZD",
      "address": "Bangalore, Karnataka"
    },
    "buyer": {
      "name": "Client Corp",
      "gstin": "27AAACR5055K1Z5"
    },
    "line_items": [
      {
        "description": "Software License",
        "hsn_code": "998314",
        "quantity": 10,
        "rate": 5000.00,
        "amount": 50000.00
      }
    ],
    "subtotal": 50000.00,
    "cgst": 4500.00,
    "sgst": 4500.00,
    "total": 59000.00
  },
  "confidence": 0.96,
  "processing_time_ms": 1850
}

Ship Faster

Explore Related Solutions

Get Your API Key

Start extracting documents in minutes. Free demo available.