Create a routing policy
Create an org routing policy. The first policy becomes the org default automatically. Requires the manage_routing scope.
Authenticates with a management key (manage_routing scope) or any active gateway API key of the organization.
Authentication
A management key (prefixed mgmt_), created in the dashboard under Settings, API keys, Management keys. Distinct from a regular gateway API key, and never used to call models.
Request
Explicit model alias for the new policy (bare name, lowercase slug). Omitted: derived from the name, or “default” when the policy becomes the organization default. Collisions are suffixed (“fast”, “fast-2”).
Make this the org default (unsets the previous default).
INTELLIGENT only, optional. If provided, must match the providers of allowed_models (it does not filter independently); returned derived from allowed_models on reads.
INTELLIGENT only. Optimization axis the router optimizes for; defaults to COST.
Response
The policy’s model alias (bare name), e.g. “fast-experiment”. Null only when no alias could be minted, such as an organization at its alias cap.
The ready-to-send model string for this policy, e.g. “@alias/fast-experiment”. Send it as the model in any Gateway request to route with this policy.
Optimization axis the router optimizes for (INTELLIGENT only, else null); one of COST, PERFORMANCE, CAPABILITY.