Skip to main content
POST
Create Routing Model

Authorizations

gateway_session
string
cookie
required

Secure same-origin browser session cookie.

Body

application/json
name
string
required
alias
string
required
strategy
enum<string>
required
Available options:
priority,
round_robin,
weighted
targets
RoutingTargetRequest · object[]
required
Required array length: 1 - 10 elements
aliases
string[]

Additional exact, case-sensitive model IDs without a provider prefix. Unique within the route's organization or project scope. Project names override inherited names.

Maximum array length: 20
project_id
string | null

Project UUID; null means organization scope

description
string | null
max_attempts
integer
default:2
Required range: 1 <= x <= 5
retry_on
enum<string>[]
Available options:
connection_error,
rate_limit,
server_error
enabled
boolean
default:true
strict_capabilities
boolean
default:false
session_affinity
boolean
default:false
circuit_breaker_enabled
boolean
default:false
auto_routing
AixyManagedRoutingRequest · object

Response

Successful Response

id
string
required
organization_id
string
required
project_id
string | null
required
name
string
required
alias
string
required
aliases
string[]
required
model
string
required
description
string | null
required
strategy
string
required
max_attempts
integer
required
retry_on
string[]
required
enabled
boolean
required
strict_capabilities
boolean
required
session_affinity
boolean
required
circuit_breaker_enabled
boolean
required
auto_routing
AixyManagedRoutingRequest · object
required
targets
RoutingTargetResponse · object[]
required
created_at
string
required
updated_at
string
required
object
string
default:routing.model
Allowed value: "routing.model"