API reference

API overview

Base path, authentication, and rate limits for the Relay API.

Base path

All endpoints live under /api/v1.

Authentication

Relay issues its own tokens: it does not share the identity service ChatPlotDB uses.

TokenLifetime
AccessShort-lived; sent as a bearer token
RefreshLong-lived; exchanges for a new access token

The public chat endpoint is the exception: it is reached by the widget from a visitor's browser, and is protected by allowed domains rather than a user token.

Rate limits

Limits are applied per-minute, with a tighter limit on chat than on general endpoints, since chat is the expensive path.

Exceeding a limit returns 429. Back off rather than retrying immediately.

Endpoint groups

GroupCovers
BotsCRUD, status, widget snippet
ChatThe public chat endpoint and its stream
TrainingSources, crawl, uploads, FAQs, reindex
InboxConversations, replies, assignment, labels
AnalyticsMetrics and export
WebhooksInbound channel deliveries

On this page