Save the Auto Router
Changed onReplaces the organization's Auto Router: whether it is enabled and its routes in order. Each route names an AI Gateway model from the options list, a description of when to use it, and one thinking level the model allows. The first route is the default model: its prompt is fixed (any prompt sent for it is ignored), Auto uses it when no other route matches, and it is the fallback when the router cannot decide. Every other route needs a prompt; enabling needs at least one route and is refused with auto_router_not_configured while the AI Gateway has no TypeSafe key. Requires the Manage Gateway providers permission, a recent sign-in and the Auto Router feature.
Request
- Base URLhttps://api.openworklabs.com
- URLhttps://api.openworklabs.com/v1/org/auto-router
- Auth
- API key in header x-api-key
- or HTTP bearer
Request body
Response
Auto Router saved.
Changes
- breaking
added the new required request property
// - breaking
removed the required property
//from the response with the status - warning
removed the request property
// - info
the request property
//became optional - info
the
//request property's minLength was decreased from1to0 - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking
- info
added the non-success response with the status
- info
added the required property
to the response with the status
- info