Management Keys
Update a BYOK key
Updates one BYOK key: enable/disable, rename, switch fallback mode, per-model toggles (modelToggles), and reset the applicable scope (scopedApiKeyIds). All fields are optional; the upstream key itself cannot be replaced — delete and recreate to rotate it.
PATCH
/api/v1/management/byok-keys/:idAuthorizations
Authorizationrequiredstring · header
API key as bearer token in the Authorization header.
Path parameters
idrequiredstring
The BYOK key id.
Body
enabledboolean
Master switch for the whole key.
fallbackModestring
Whether to fall back to platform routing when the upstream fails.
seamlessstrictnamestring
New display name.
1-200 chars
modelToggles{canonicalId, enabled}[]
Per-model switches: each element names a canonicalId and enabled. Only listed models change; the rest keep their state.
≤2000 items
scopedApiKeyIdsstring[]
Replaces the whole scope list: an empty array restores org-wide applicability. Including a key id you don't own answers 400.
≤200 items; must be your own keys
Response examples