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.

Endpoint



               https://api.docanalyzer.ai
               

Authentication

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 -H "Authorization: Bearer $DOCANALYZER_API_KEY" --json '{ "prompt": "$YOUR_QUESTION" } https://api.docanalyzer.ai/api/v1/doc/$YOUR_DOCID/chat'

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

Community API Contributions Repository

Explore our Community Contributions Repository where you can discover a variety of user-generated code samples that leverage the docAnalyzer API across different programming languages. This repository is a valuable resource for seeing practical implementations and innovative uses of our API, allowing you to learn from and build upon the work of other developers. To contribute your own examples or browse the existing contributions, visit our Community Contributions Repository on GitHub. Remember, while we do not offer specific support for these scripts, our Discord community is available to assist you.