VALIDATION\_INVALID\_BODY | The request body failed schema validation. Check the details field for specific field errors. |
VALIDATION\_INVALID\_JSON | The request body is not valid JSON. |
CHAT\_RETRY\_NO\_USER\_MESSAGE | The retry target message has no preceding user message to re-send. |
AUTH\_MISSING\_API\_KEY | No Authorization header was provided. |
AUTH\_INVALID\_API\_KEY | The API key is not valid. |
AUTH\_EXPIRED\_API\_KEY | The API key has expired. Generate a new one from the dashboard. |
CHAT\_CREDITS\_EXHAUSTED | The workspace's message credit balance is zero. Upgrade the plan or wait for credits to reset. |
CHAT\_AGENT\_CREDITS\_EXHAUSTED | The specific agent's credit allocation has been used up. |
SUBSCRIPTION\_API\_RESTRICTED\_PLAN | Your current plan does not include API access. A Standard Plan or above is required. |
AUTH\_INSUFFICIENT\_PERMISSIONS | The API key does not have the required permissions for this operation. |
CHAT\_MODEL\_NOT\_ALLOWED | The agent is configured to use a model that is not available on the current plan. |
CHAT\_CONVERSATION\_MISMATCH | The conversation does not belong to the specified agent. |
CHAT\_CONVERSATION\_NOT\_ONGOING | The conversation has ended or been taken over and cannot receive new messages. |
RESOURCE\_NOT\_FOUND | The requested resource does not exist. |
RESOURCE\_TOOL\_CALL\_NOT\_FOUND | No pending client action matches the provided toolCallId. It may have expired or already been resolved. |
RESOURCE\_MESSAGE\_NOT\_FOUND | The specified message was not found in the conversation. |
RESOURCE\_MESSAGE\_NOT\_ASSISTANT | Only assistant messages support feedback and metadata updates. |
CHAT\_RETRY\_MESSAGE\_NOT\_FOUND | The message ID provided for retry was not found in the conversation. |
RATE\_LIMIT\_TOO\_MANY\_REQUESTS | Rate limit exceeded. Check the Retry-After header for how long to wait. See Authentication for details. |
INTERNAL\_SERVER\_ERROR | An unexpected error occurred. If this persists, contact support with the x-request-id header value. |
CHAT\_STREAMING\_ERROR | An error occurred during stream generation. The stream may have been partially delivered. |