ReplyBrain Docs LLMs

API Overview

The /v1 API lets your servers read and work on your organization's cases: open managed cases, read transcripts, record needs, run and approve work, track commitments, and follow everything through an event stream. The complete contract is the interactive reference, generated from openapi.json (OpenAPI 3.1).

Base URL

https://replybrain.com/v1

JSON over HTTPS. Timestamps are UTC ISO 8601; ids are opaque strings.

Authentication

curl https://replybrain.com/v1/cases \
  -H "Authorization: Bearer $REPLYBRAIN_API_KEY"

Only organization-owned secret keys (rb_sk_live_…) are accepted. Browser sessions, cookies, query-string tokens and other key types are refused (403 policy_denied). A missing, wrong or revoked key is 401 unauthenticated. Keep secret keys on servers.

The one exception is POST /v1/connections/{id}/events, which your app signs with its connection secret and sends with no key: see Connection events.

Scopes

Each key carries scopes named after resource families. Reads need <family>.read, writes <family>.write:

Family Scopes
Cases and their messages cases.read, cases.write
Needs needs.read, needs.write
Runs and plans runs.read, runs.write
Actions actions.read, actions.write; plus actions.financial, actions.identity, actions.deployment, actions.work for those effects
Approvals approvals.write
Commitments commitments.read, commitments.write
Capabilities capabilities.read
Connections connections.read
Context queries context.read (also for creating one)
Events events.read
Waits waits.read

A missing scope is 403 policy_denied with details.required_scope.

Bounds

A key may be bounded to some products, connections, accounts or cases. Anything outside its bounds answers 404 not_found, exactly like something that does not exist.

Who a decision belongs to

Approving or rejecting an action and deciding a need are human decisions: they are recorded as made by the member who created the key, and checked against that member's permissions. A key whose creator is no longer a member of the organization is refused.

Rate limits

600 requests per minute per key. Above that: 429 rate_limited with Retry-After (seconds until the next minute).

Conventions

Convention Page
Error shape and codes [[api-reference/errors
Idempotency keys, 202, ETags and If-Match, pagination [[api-reference/conventions
Every endpoint at a glance [[api-reference/endpoints