HMS Doc Processing Service

PDF analysis, table extraction, document classification, and merchant statement parsing.

Interactive API Docs

Try endpoints directly in your browser with Swagger UI.

/docs

API Reference (ReDoc)

Clean, readable endpoint documentation.

/redoc

Markdown Reference

AI-friendly markdown format. Paste into any LLM context.

/api-reference.md

OpenAPI Spec (JSON)

Machine-readable schema for SDK generation and AI agents.

/openapi.json

Endpoints

MethodEndpointDescriptionAuth
GET/healthHealth checkNone
POST/analyzeUpload PDF, extract text/tables/KV, apply parsing profilesAny key
POST/extract-tablesExtract tables from PDF (JSON, CSV, or XLSX)Any key
POST/classifyClassify or label a document (human + auto)Any key
GET/doc-typesList known document typesAny key
POST/doc-typesRegister a new document typeMaster
GET/classify/statsClassification training progressAny key
POST/keysCreate a new sub API keyMaster
GET/keysList all API keys with usageMaster
GET/keys/{id}/usageDetailed usage for a keyMaster
DELETE/keys/{id}Revoke an API keyMaster
POST/pipedrive/syncSync files from won Pipedrive dealsMaster
GET/pipedrive/sync/statusLast sync status and countsMaster
GET/pipedrive/dealsList synced deals and filesMaster

Authentication

All endpoints except /health require a Bearer token:

Authorization: Bearer your_api_key_here

Master key: Full access. Create sub keys, manage Pipedrive sync, register doc types.

Sub keys: Scoped to specific endpoints, rate-limited, with per-key usage tracking (pages processed, requests, cache hits).

AI Integration

To integrate this API with an AI agent or tool: