API documentation

The docAnalyzer API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.




The docAnalyzer API uses API keys to authenticate requests. You can create and manage your API keys in your account API Dashboard.

Your API keys carry many privileges, so be sure to keep them secure. Don't share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Your API requests should include your API key in an Authorization HTTP header as follows:

Authorization: Bearer DOCANALYZER_API_KEY

Quick start

POST /api/v1/doc/upload

Upload a document using multipart/form-data

curl https://api.docanalyzer.ai/api/v1/doc/upload -H "Authorization: Bearer $DOCANALYZER_API_KEY" -F [email protected]

GET /api/v1/doc

Return a JSON list of all your documents with their docids:

curl https://api.docanalyzer.ai/api/v1/doc -H "Authorization: Bearer $DOCANALYZER_API_KEY" 

POST /api/v1/doc/{docid}/chat

Return a chat answer and update chat history:

curl https://api.docanalyzer.ai/api/v1/doc/$YOUR_DOCID/chat -H "Authorization: Bearer $DOCANALYZER_API_KEY" -d '{ prompt": '$YOUR_QUESTION' }'

API reference

To check the complete API, please visit our reference documentation.

Please note that the reference documentation is work in progress and may be yet incomplete