Skip to main content
GET
List a provider's model routes

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.

Path Parameters

provider_id
string<uuid>
required

Response

200 - application/json

List of routes

id
string<uuid>
required
provider_id
string<uuid>
required
model_alias
string
required
Example:

"gpt-4o-mini"

upstream_model
string
required
Example:

"gpt-4o-mini-2024-07-18"

enabled
boolean
required
priority
integer
required

Lower numbers are tried first within the same alias

retry_on_429_count
integer
required

Same-route retries on upstream 429 before failing over

Required range: 0 <= x <= 10
retry_on_429_max_wait_secs
integer
required

Cap on honoring upstream Retry-After (0 = use small built-in default)

Required range: 0 <= x <= 180
bare_alias
boolean
required

When true the route participates in plain-alias resolution (e.g. model: "gpt-4o-mini"). When false it is only addressable as <provider>/<upstream-model>.

provider_name
string

Present on cross-provider listings

stream_idle_timeout_secs
integer | null
Required range: 1 <= x <= 1800
max_concurrent_requests
integer | null

Cap on in-flight requests per gateway pod against this route

Required range: 1 <= x <= 10000
request_timeout_secs
integer | null
Required range: 1 <= x <= 3600
budget_status
object

Present (and only present) when one of this route's targeted budgets with action_on_exhaust = block is currently exhausted. The runtime drops this route until the budget rolls over.