Documentation

Guides and API reference for the Document Conversion Service.

Overview

The Document Conversion Service turns PDFs, Word documents and images into validated, machine-readable JSON. Upload a file, poll (or receive a webhook) and fetch the structured result.

Production API base URL: https://document-conversion-service-q3q1.vercel.app. All document, webhook, API-key, usage and billing routes live under /api/v1.

Authenticate

Send your API key on every protected request:

curl https://document-conversion-service-q3q1.vercel.app/api/v1/documents \
  -H "X-API-Key: dcs_..."

Where to go next

Your first request

curl -X POST https://document-conversion-service-q3q1.vercel.app/api/v1/documents/async \
  -H "X-API-Key: $DCS_API_KEY" \
  -F "file=@invoice.pdf" \
  -F "priority=normal"

The response contains a document ID. Poll /api/v1/documents/{id}/status until it reports completed, then read the result from /api/v1/documents/{id}/result.