Learn how to call Neurons using the REST API or the TypeScript SDK.
Authorization
header:
Parameter | Type | Description |
---|---|---|
bypassCache | boolean | When true, forces a new execution and bypasses both exact and semantic caching |
rawOutput | boolean | When true, returns the raw text output without any processing |
Authorization
header:
Status Code | Description | Common Causes |
---|---|---|
400 Bad Request | Invalid request parameters | • Malformed input JSON • Missing required fields |
401 Unauthorized | Authentication failed | • Invalid/expired token • Malformed API key • Missing authentication |
403 Forbidden | Access denied | • Access control restrictions • IP not in allowed list • Domain not in allowed referers |
404 Not Found | Resource not found | • Neuron not found • Deployment not found • Organization not found • Invalid neuron configuration |
422 Unprocessable Entity | Validation failed | • Input validation failed • Invalid parameter format |
429 Too Many Requests | Rate limit exceeded | • Rate limits exceeded • Account paused (billing) • Usage limits exceeded |
500 Internal Server Error | Server-side error | • Unexpected server errors • Missing deployment • Configuration issues |
503 Service Unavailable | Service down | • Maintenance mode • System overload • Upstream service failures |
429
responses, check the Retry-After
header for the number of seconds to wait before retrying:429
and 503
errors. See Rate Limiting for more details about handling rate limits.callNeuron
method accepts these options: