API

Document intelligence in your own workflows

Integrate DocMind AI into existing business systems through a straightforward JSON API — upload documents, read structured results, and ask questions programmatically.

Upload a document

curl -X POST https://api.docmindai.example/v1/documents \
  -H "Authorization: Bearer $DOCMIND_API_KEY" \
  -F "file=@supply_agreement.pdf" \
  -F "collection=contracts"

Example response

{
  "answer": "Either party may terminate with 60 days' written notice.",
  "citations": [
    { "document": "supply_agreement.pdf", "page": 9 }
  ],
  "fields": {
    "counterparty": "Northwind Logistics",
    "effective_date": "2026-03-01",
    "term_months": 24
  }
}

Examples are illustrative previews of the planned API surface during early access.

Developer experience

Designed to fit existing pipelines

Upload endpoint

Send documents programmatically and receive a document ID to track processing.

Structured extraction

Retrieve extracted fields as typed JSON, ready to write into your own systems.

Scoped API keys

Issue keys per integration so each system only reaches the collections it needs.

Processing callbacks

Get notified when analysis completes instead of polling for results.

Want API access during early access?

Tell us what you'd like to build and we'll include API details in your early access invitation.