API Reference
Build powerful document intelligence workflows. Our REST API gives you full access to AI-powered extraction, analysis, and summary capabilities for your PDF documents.
Authentication
Authentication to the Document Analyzer API is handled via Bearer tokens. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Authorization Header
Authorization: Bearer YOUR_API_KEYSecurity Tip: Never share your API keys or commit them to version control. If a key is compromised, revoke it immediately in the developer portal.
/v1/meGet Account Balance
Returns the credit balance and subscription plan details for the API key owner. Use this to check remaining credits before queuing analysis jobs.
Parameters
| Name | Type | Description |
|---|
No scope required — all valid API keys can call this endpoint. `creditsRemaining` will be `0` once the monthly allowance is exhausted; upgrade your plan or wait for the next billing cycle.
/v1/document/uploadUpload a Document
Uploads a file to the platform and returns a `documentId`. Use this ID as the `uploadedDocumentId` field when calling `POST /v1/document/analyze`. Accepted formats: PDF, TXT, Markdown, CSV, JSON. Maximum file size: 20 MB.
Parameters
| Name | Type | Description |
|---|---|---|
fileRequired | binary (multipart/form-data) | The document file to upload. Must be sent as multipart/form-data with the field name `file`. |
Requires the `document:upload` scope on your API key. The returned `id` is the `uploadedDocumentId` required by `POST /v1/document/analyze`.
/v1/document/analyzeQueue AI analysis for a document
Queues an AI-powered analysis job for a previously uploaded document. This is an asynchronous operation — the result is delivered via webhook (`analysis.created` event) when complete. Upload your document first using `POST /v1/document/upload` to obtain a `uploadedDocumentId`.
Parameters
| Name | Type | Description |
|---|---|---|
uploadedDocumentIdRequired | string | The `id` returned by `POST /v1/document/upload`. The document must belong to the API key owner. |
inputText | string | Custom instructions for the AI analyzer. Max 2000 characters. |
overrideDefaultSections | boolean | If true, only the custom instructions will be used. |
analysisSource | string | A label to categorize the analysis source (e.g., "MARKETING", "FINANCE"). |
The analysis typically takes between 15-60 seconds depending on the document size and complexity.
/v1/documentList Documents
Returns a paginated list of all documents owned by the API key. Use `page` and `limit` query parameters to paginate through results.
Parameters
| Name | Type | Description |
|---|---|---|
page | number | Page number, starting at 1 (default: 1). |
limit | number | Number of results per page (default: 20, max: 100). |
Requires the `pdf:read` scope on your API key.
/v1/analysisList Analyses
Returns a paginated list of all analysis results owned by the API key, ordered by creation date descending.
Parameters
| Name | Type | Description |
|---|---|---|
page | number | Page number, starting at 1 (default: 1). |
limit | number | Number of results per page (default: 20, max: 100). |
Requires the `pdf:read` scope on your API key.
/v1/document/:idGet a Document
Retrieves the metadata and current status of a document by its unique ID.
Parameters
| Name | Type | Description |
|---|---|---|
idRequired | string | The unique ID of the document. |
/v1/analysis/:idGet an analysis result
Retrieves the full AI analysis results for a document. If the analysis is still in progress, it will return the current status.
Parameters
| Name | Type | Description |
|---|---|---|
idRequired | string | The unique ID of the analysis job. |