Skip to main content
Chat endpoints:
  • POST /v1/bots/{botId}/chat
  • POST /v1/bots/{botId}/chat/stream
Use GET /v1/bots first to find a bot ID.

Standard chat response

Request fields:
  • message required
  • sessionId
  • includeCitations
  • webSearch
  • useMcp

Streaming

Use the SSE endpoint for streamed replies:
That endpoint returns text/event-stream.

Session context

Pass the sessionId from the previous response when you want the next request to continue the same conversation.

Usage

A chat response counts as one request. For API key traffic:
  • credit-balance workspaces use 1 credit per chat response
  • enterprise pooled workspaces use included workspace requests first, then credits if available
  • enterprise per-user workspaces use credits for API key traffic
Signed-in app usage can also be limited by member request limits. If the request cannot be covered by included usage, credits, or the relevant caps, the API returns 402.