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

StatusCodeMeaning
401invalid_api_keyMissing, malformed, invalid, or revoked API key
404model_not_foundThe 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].