Skip to main content
GET
/
admin
/
llm-gw
/
route-health
Get route health
curl --request GET \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/admin/llm-gw/route-health \
  --header 'Authorization: Bearer <token>'
{
  "routes": [
    {
      "provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "provider_name": "<string>",
      "model_provider": "openai",
      "upstream_model": "<string>",
      "consecutive_failures": 123,
      "multiplier": 123,
      "eject_remaining_secs": 123,
      "in_flight": 123,
      "concurrency_cap": 123,
      "recent_transitions": [
        {
          "from": "<string>",
          "to": "<string>",
          "reason": "<string>",
          "window_secs": 123,
          "age_secs": 123
        }
      ]
    }
  ]
}
Returns a per-route operational view of upstream health. Useful for dashboards, alerting integrations, and incident triage.

Route states

StateMeaning
healthyThe route is serving traffic normally.
half_openThe route was recently ejected; the gateway is letting a small probe of traffic through to test recovery.
ejectedThe route has been temporarily removed from the failover loop. New traffic will skip it until eject_remaining_secs elapses.
cooldown_reason explains why a route is in cooldown:
  • rolling_failures — too many upstream errors in the rolling window.
  • rate_limited — the upstream returned 429s faster than the route’s retry policy could absorb them.

Recovery

Routes recover automatically as cooldown windows expire and probe traffic succeeds. To force a route back to healthy immediately — for example after an upstream incident is resolved — call POST /admin/llm-gw/route-health/{provider_id}/reset.

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Response

200 - application/json

Route health snapshot

routes
object[]
required