# REST API overview

> For AI agents: the index of these docs is at https://indrava.forumulate.com/docs/llms.txt (every page it lists has a Markdown version like this one).

Base address, formats and conventions of the Indrava REST API.

## Base address

All routes are under `/api/v1` on your Indrava API address:

```
http://localhost:4000/api/v1
```

The API also serves its own description:

| Address | What |
| --- | --- |
| `/api/v1/openapi.json` | The OpenAPI document |
| `/api/v1/docs` | A reference page built from that document |

The **API reference** in this space is built from the same document, the [operations page](https://indrava.forumulate.com/docs/operations) adds the scope and MCP tool name of each operation, and [Scopes](https://indrava.forumulate.com/docs/scopes) lists the operations each scope opens.

## Conventions

- Send `Authorization: Bearer <token>` on every request. See [Authentication](https://indrava.forumulate.com/docs/authentication).
- Request and response bodies are JSON. Send `Content-Type: application/json` with a body.
- Times are ISO 8601 in UTC, such as `2027-01-31T09:00:00Z`.
- Ids are opaque strings.
- Query parameters that take a list are written with brackets: `status[]=draft&status[]=failed`.
- Everything is scoped to the workspace of the key or token. There is no workspace id in the path.

## Paging

Lists return the newest items first, as a plain array. Where a list takes `cursor`, pass the `id` of the last item of the page you have, with the same `limit`; a page shorter than `limit` is the last one. `GET /posts` returns at most 500 posts per call.

## Files

`POST /media/upload` on the API address (not under `/api/v1`) takes `multipart/form-data` with one file, the same bearer token and the `media:write` scope. `POST /api/v1/media/import` fetches a file from a public URL instead. Both answer with an `id` that a post takes in `mediaIds`.

## Retries

Send an `Idempotency-Key` header with `POST /posts` when creating a post. A second request with the same key returns the first post instead of making another.

## What the API covers today

Channels (connect, pause, rename, remove), posts and recurring series, media, approvals and review links, comments, the inbox, tags, channel sets, signatures, posting slots and the queue, feeds, short links, automations, reports and analytics. Clients can be listed. Managing clients, members, billing, settings and API keys is done in the app, and so are the AI assistant, evergreen posts and link-in-bio pages. The [operations page](https://indrava.forumulate.com/docs/operations) is generated from the API's own routes, so it is the complete list.

There is a typed client for Node and the browser in the `packages/sdk` folder of the Indrava repository. It is not on npm yet.

## Limits and errors

See [Rate limits](https://indrava.forumulate.com/docs/rate-limits) and [Errors](https://indrava.forumulate.com/docs/errors).

---

## For AI agents

- This page for a human reader: https://indrava.forumulate.com/docs/rest-api
- The whole space as one Markdown file: https://indrava.forumulate.com/docs/llms-full.txt
- Live search + fetch over MCP: https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/mcp
  - Install (Claude CLI): `claude mcp add forumulate-docs --transport http https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/mcp`

This Markdown is the same content the page renders — safe to quote and to ground answers in.
