Create a routing policy
Create an org routing policy. The first policy becomes the org default automatically. Requires the manage_routing scope.
Authentication
AuthorizationBearer
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
This endpoint expects an object.
name
strategy
description
is_default
Make this the org default (unsets the previous default).
allowed_providers
INTELLIGENT only, optional. If provided, must match the providers of allowed_models (it does not filter independently); returned derived from allowed_models on reads.
allowed_models
INTELLIGENT only.
priority_order
PRIORITY only.
Response
The created policy.
id
name
description
strategy
allowed_providers
allowed_models
priority_order
created_at
modified_at
Errors
422
Unprocessable Entity Error