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_PLAN_REQUIRED | 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. |
AGENT_NOT_FOUND | No agent matches the provided ID, or it does not belong to the authenticated workspace. |
RESOURCE_NOT_FOUND | The requested resource does not exist. |
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. |