> ## Documentation Index
> Fetch the complete documentation index at: https://docs.captide.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Conventions

## Renamed parameters and fields

In November 2026 a few names were aligned across endpoints.

| Where | Current name | Previous name |
| - | - | - |
| `/companies/search` parameter | `query` | `q` |
| `/companies/list` parameter | `permIds` | `permids` |
| `/rag/chunks` request | `POST` with a JSON body: `query`, `documentIds` | `GET` with query parameters: `query`, `document_ids` |
| Company responses | `permId` | `permid` |
| `metadata` of documents and webhook payloads | `sourceUrl` | `sourceURL` |
| `documentMetadata` of chunks and agent sources | `secFormType`, `companyTickers` | `formType`, `tickers` |

The previous parameter names are still accepted, but use the current ones. `/rag/chunks` only accepts `POST`: a `GET` returns `405`. Responses return only the current field names, except `GET /api/v1/documents/{id}`, which keeps its legacy fields.

## Pagination

| Endpoint | `limit` | Pagination |
| - | - | - |
| `/companies/list` | 1–1,000, default 100 | `offset` |
| `/companies/search` | 1–50, default 20 | First page only (type-ahead). |
| `/documents/list` | 1–1,000, default 100 | `offset` |
| `/changes` | 1–1,000, default 100 | `after`: pass each response's `nextCursor` |
| `/changes/snapshot` | 1–1,000, default 100 | `pageToken`: pass each response's `nextPageToken` until it is `null` |

For `/companies/list` and `/documents/list`, request pages with the same filters and increasing `offset` (`0`, `limit`, `2 × limit`, …) until a page returns fewer than `limit` items. Results have a stable order: companies by name, documents by `date` (newest first by default), with ties broken by ID.

## Tickers

Ticker filters (`tickers` on `/companies/list`, `companyTickers` on `/documents/list`) accept tickers in the form the API returns them:

* **With an exchange suffix**, such as `STO.AX` or `ITX.MC`, to match one listing.
* **Without a suffix**, such as `STO` or `AAPL`, to match that symbol on every exchange. A short symbol can match companies listed on different exchanges, so prefer the suffixed form.
* Share classes use a hyphen, as the API returns them, for example `BRK-B` or `BF-B`.

Matching is case-sensitive: use upper case as in the API's responses. Country codes (`countries`) are matched in any case.

## Document IDs

Use the `id` from `/documents/list`, from `documentMetadata.id` in chunks and agent sources, or from a webhook payload, with `GET /api/v2/documents/{id}`. They identify the same document across endpoints.

## File links

`originalFileUrl`, `markdownFileUrl` and `layoutJsonFileUrl` are signed links that expire **one hour** after the request. Download the files within that hour, or request the document again for fresh links instead of storing them. When a document has no Markdown version yet, `markdownFileUrl` is an empty string. `layoutJsonFileUrl` is `null` for documents that weren't processed by Captide's OCR pipeline.

## Limits and credits

* Requests over your organization's rate limit receive `429`. Wait and retry.
* Each endpoint has a price per call in API credits; when your organization runs out of credits, requests receive `402`.
* Requests that take longer than about 15 seconds are cut off with `504`. This mainly affects text searches (`query` on `/documents/list`) for very common words across all companies: add a filter such as `companyTickers` or `documentCategories`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.