Skip to main content
PATCH
Update LiteLLM key or key creation

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

inferenceProviderId
string<typeid>
required

Den TypeID with 'ipr_' prefix and a 26-character base32 suffix.

Required string length: 30

Body

application/json
apiKey
string
Required string length: 1 - 4096
issueStrategy
enum<string>

issued mode. per_team: one key per LiteLLM team the person belongs to, or one key without a team when they are in none. mirror: a copy of their oldest active key (team, models, aliases, tags, expiry; never key-level budgets or rate limits).

Available options:
per_team,
mirror
mirrorFallback
enum<string>

issued + mirror: for someone with no key to copy, create per-team keys, or report them and create nothing.

Available options:
per_team,
error
oauthTenantId
string

Directory (tenant) ID of the Entra ID tenant, a GUID.

Required string length: 1 - 64
oauthClientId
string

Application (client) ID of the Entra app registration people sign in to.

Required string length: 1 - 255
oauthClientSecret
string

A client secret of that app registration. Write-only.

Required string length: 1 - 4096
oauthScope
string

One API scope that app registration exposes, for example api:///access. LiteLLM must accept access tokens for it; Microsoft Graph and Azure Cognitive Services scopes are refused.

Required string length: 1 - 512
modelIds
string[]

The LiteLLM model names people may use. OpenWork holds no LiteLLM key in this mode, so it cannot read them from the proxy.

Required array length: 1 - 500 elements
Required string length: 1 - 255

Response

Update LiteLLM key or key creation

inferenceProvider
object
required
sync
object
required