Skip to main content
This guide will help you get started with Captide quickly, showing you how to set up both the REST API and the Document Auditing JavaScript SDK to embed corporate disclosure intelligence into your systems.
Before you begin, make sure you request a Captide test API key.

Using the REST API

Authentication

All API requests require authentication using your API key in the X-API-Key header:

Example 1: Retrieve Company Information

Use the /companies/list endpoint to find companies in Captide and retrieve their company id, which you can pass to other endpoints. Tickers are accepted with or without an exchange suffix (STO.AX or STO).
To look companies up by name instead, use /companies/search (for example ?query=Santos).

Example 2: Retrieve Company Documents

Use the /documents/list endpoint to search for documents by documentCategories, secFormTypes, fiscal period, date range, or by the filing company’s companyTickers or companyIds. In the example below, we use the id of Santos to retrieve its latest interim-financial-report documents:
The response contains the metadata of each document, newest first. Keep the document id: you use it to retrieve the document’s files.
Once you have identified the documents you need, pass their id to the /documents/{id} endpoint to get links to the files:
originalFileUrl links to the original document and markdownFileUrl to its Markdown version, which is optimized for downstream analysis and LLM ingestion. For documents processed by Captide’s OCR pipeline, layoutJsonFileUrl links to the document’s layout as JSON: each page’s text, tables and figures, with their position on the page. It’s null for other documents.
File links are signed and expire one hour after the request (the se parameter). Request the document again for fresh links instead of storing them.

Example 3: Prompt-Based Chunk Retrieval

With Captide, you can create RAG-based applications and tools without the need to collect, preprocess, chunk, or store document excerpts yourself. Send a natural language query to the /rag/chunks endpoint and you’ll receive the relevant document excerpts from our database.
The response includes the relevant chunks with their page number and document metadata:
You can then use the relevant chunks as context for AI-generated responses, and combine them with context from other sources, such as internal data or structured databases. To search only specific documents, add their IDs to the body as documentIds, comma-separated.

Example 4: AI Agent Response

Captide answers questions grounded in corporate disclosures, with every statement traceable to its source. Send the query as JSON to the /rag/agent-response endpoint:
The answer is in the content field, in Markdown, with citations such as [#43c00004] embedded in the text. Every citation is a key in sourceMap, which holds the chunk it came from and the exact excerpt that supports it. When the same chunk supports several statements, later citations carry a suffix (#43c00004:2), each with its own entry and excerpt.
Use documentMetadata.id, pageNumber and excerpt from a sourceMap entry to open the source in Captide’s Document Auditing SDK and highlight the passage (see below).

Example 5: Streaming AI Agent Response

The /rag/agent-response-stream endpoint streams the agent’s progress and answer as Server-Sent Events (SSE). Use it in chat interfaces, where you want to show what the agent is doing and display the answer as it is written.
Each event is a data: line holding a JSON object. Its type is one of:

Using the Document Auditing JavaScript SDK

Installation

Install the Captide SDK in your project:

Integration Example

The viewer loads documents through a fetchDocumentFn you provide. Point it at your own backend, which calls GET /api/v2/documents/{id} with your API key (see the Backend Integration guide), so the key never reaches the browser.

Next Steps