3 radically simple APIs to process your documents
/document-to-json
/document-to-markdown
/store-and-search-documents
/document-to-json
# Convert any document to a custom JSON schema
curl -X POST https://api.documentai.dev/document-to-json/v1 \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@invoice.docx" \
-F 'schema={"company": "string", "paid": "boolean", "items": [{"name": "string", "price": "number"}]}'/document-to-markdown
# Convert any document to Markdown
curl -X POST https://api.documentai.dev/document-to-markdown/v1 \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@report.png" \
-F 'options={"headings": true, "italic": false, "tables": true, "page_delimiters": false}'/store-and-search-documents
# Store a document with metadata filters
curl -X POST https://api.documentai.dev/store-and-search-documents/v1/dataspaces/:dataspaceId/documents \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@company-wiki.pdf" \
-F 'filters={"string_1": "hr-policies", "string_2": "published", "number_1": 2025}'
# Search your documents by meaning + filters
curl -X POST https://api.documentai.dev/store-and-search-documents/v1/dataspaces/:dataspaceId/documents/search \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What is the remote work policy?",
"filters": [
{"field": "string_1", "operator": "==", "value": "hr-policies"},
{"field": "number_1", "operator": ">=", "value": 2024}
],
"limit": 5
}'Super easy to set up
Everything is efficient and straightforward.
Private & secure
We don't use nor share your data.
EU data residency
Data only stored and processed in the EU.
We support all document types
PDFWord (.doc, .docx)Images (PNG, JPG, WebP, GIF, BMP)PowerPoint (.ppt, .pptx)Excel (.xls, .xlsx, .csv)HTMLRTF / TXTOpenDocument (ODT, ODS, ODP)Code filesPlain text