Create a route
Creates a route that maps a name to a Model API target. Dedicated deployment targets are not supported.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Body
Upstream target for the route. CONNECTION targets use the provider and credentials of a connection owned by the route's team.
- UpsertRouteTargetBasetenModelAPIV1
- UpsertRouteTargetConnectionV1
- UpsertRouteTargetClassifierModelBasedV1
Identifier of the team that owns the route.
1"abc1234"
Display label. Omit to use the route name; null is not accepted.
1 - 255"Assistant"
Short description of the route. Omit for no description; null is not accepted.
1000"Assistant for code review and debugging."
Response
Stable route identifier.
Name to send in the inference request's model field.
Identifier of the owning team.
Name of the owning team.
Display label, defaulting to the route name.
Short description of the route, empty when unset.
Configured upstream target.
- RouteTargetBasetenModelAPIV1
- RouteTargetConnectionV1
- RouteTargetClassifierModelBasedV1
Resolved model metadata; for a router, the envelope of its allowed routes' metadata. Null when nothing is linked.
Base URL for inference requests using this route.
Creation time, ISO 8601.