Refresh managed LLM API key
POST /api/keys/llm/managed/refresh
Refresh the managed Faheem Code LiteLLM key for the current user/org. Delegates the full managed-key lifecycle (effective-config classification, alias cleanup, key generation with Faheem Code metadata, and persistence) to SaasSettingsStore.rotate_managed_llm_key so the route does not duplicate the storage-layer machinery. Only managed LiteLLM/Faheem Code- provider effective configs are rotated; BYOK/custom and non-managed configs are rejected before any key is generated. The previous key token is deleted best-effort only after the replacement is persisted.
Responses
| Status | Description |
|---|---|
200 | Successful Response |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
refreshed | boolean | yes | — |
Operation ID: refresh_managed_llm_api_key_api_keys_llm_managed_refresh_post