DocAI
How it worksPricingDocsTrustCookies
Sign inStart free
DocAI Docs
DocAI Docs
ProductOpenAPIDocAI APIAuthenticationPythonExtractJobs & batchCreditsErrorsIdempotencyConnectorsMCP

DocAI API

PDF to JSON document processing API. REST and MCP reference for intelligent document processing.

DocAI turns business PDFs into structured JSON. This site is the integrator reference for the PDF data extraction API and document processing endpoints.

Base URL

https://docaiapi.subgradientlabs.com/api/v1

The same routes are also mounted under /api (alias). Prefer /api/v1.

Interactive OpenAPI (public subset: extract, jobs, usage, schema reads, API keys) lives on the API host at /docs. Machine-readable schema: /api/openapi.json. Org delete, checkout, and connector OAuth are not in that spec.

Quick start

  1. Create an API key in the DocAI workstation (Settings → API keys).
  2. Call extract with Bearer auth:
curl -X POST "$API/api/v1/extract" \
  -H "Authorization: Bearer docai_sk_live_..." \
  -F "file=@invoice.pdf" \
  -F "extract_tier=lite"
  1. Check credits with GET /api/v1/billing/usage.

Contents

GuideWhat you get
AuthenticationAPI keys, TTL, rotate, Bearer header, org-scoped JWT
Pythonpip install doc-ai client (from docai import DocAI)
ExtractSync extract, modes, guidance rules
Jobs & batchAsync batch + polling
CreditsBurn rates, usage, catalog, checkout
Errors400 / 401 / 402 / 429 shapes
IdempotencyWhat is safe to retry
ConnectorsHow to use Drive, Gmail, Sheets, Slack, QuickBooks, Shippo
MCPStreamable HTTP tools for agents

Product UI

For the workstation and marketing site, see docai.subgradientlabs.com.

Authentication

Bearer API keys and JWT for DocAI REST and MCP.

On this page

Base URLQuick startContentsProduct UI