The Brainstormer API uses standard HTTP status codes. When a request fails, the response body contains a JSON object with the following shape:Documentation Index
Fetch the complete documentation index at: https://docs.brainstormer.io/llms.txt
Use this file to discover all available pages before exploring further.
| Field | Type | Description |
|---|---|---|
error | string | Short error category (e.g. "Unauthorized") |
message | string | Human-readable explanation of what went wrong |
timestamp | string | ISO 8601 timestamp of when the error occurred |
Error codes
400 Bad Request
400 Bad Request
The request was malformed. This usually means a required field is missing or a field value is invalid.What to check:
- All required fields are present in the request body (
agent_idandmessagefor/v1/chat;kb_idandqueryfor/v1/kb/search). - Field values are the correct type (e.g.
top_kmust be a number, not a string).
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Your API key was authenticated but does not have permission to access the requested resource.What to check:
- The agent or knowledge base you are trying to access belongs to the same organization as the API key.
- The application type you selected when creating the key is appropriate for the operation you are performing.
404 Not Found
404 Not Found
The resource identified by the ID in the request does not exist within your organization.What to check:
- The
agent_idorkb_idyou are using is correct and was not deleted. - The resource belongs to the same organization as the API key you are using.
503 Service Unavailable
503 Service Unavailable