Limits

  • Maximum message length: 4000 characters.
  • Messages (/message): 80 requests per minute.
  • All endpoints together: 900 requests per 15 minutes.
  • The /message endpoint requires a session_id. If the session does not exist, a new one is created and the response includes its id and history.

Error codes

StatusErrorWhat to do
400Missing session_id or message, message too longFix the request body
401Widget token is requiredAdd the Authorization: Bearer YOUR_TOKEN header
401Invalid or expired widget tokenCheck the token in the app: AI Agent → Installation
402Plan limit reachedCheck your workspace plan and limits
429Rate limit exceededWait a moment and retry
500Server errorRetry; if it keeps happening, contact us

Error format

{
  "error": "Invalid or expired widget token"
}

In streaming mode an error arrives as an error event with status, code and error fields.