API
Errors
Documented HTTP errors and the streaming provider error shape exposed today.
Public base URL
Routera publishes the API at https://routera.one/api/v1.
These are the documented errors Routera exposes today.
HTTP errors
| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | Missing, malformed, invalid, or revoked API key |
404 | model_not_found | The requested model slug does not exist in the active catalog |
401 response:
{
"error": {
"message": "Missing or invalid API key. Send Authorization: Bearer <api key>.",
"type": "authentication_error",
"code": "invalid_api_key"
}
}
404 response:
{
"error": {
"message": "Model 'missing/model' was not found.",
"type": "invalid_request_error",
"code": "model_not_found"
}
}
Stream errors
Streaming provider failures are sent inside a chunk payload:
{
"object": "chat.completion.chunk",
"error": {
"message": "Provider-specific failure message",
"type": "provider_error",
"code": "stream_error"
}
}
At the end of a failed stream, Routera still sends data: [DONE].