Update LiteLLM key or key creation
Changed onVerifies and stores a new organization LiteLLM key (org mode) or LiteLLM admin key (member and issued modes), and in issued mode changes how keys are created, then syncs. Changing issueStrategy replaces existing created keys at that sync. For a provider whose members sign in with Microsoft: changes oauthTenantId, oauthClientId, oauthClientSecret, oauthScope and/or modelIds without contacting the proxy; with company SSO: oidcIssuer, oauthClientId, oauthClientSecret, oidcScope and/or modelIds, likewise; changing any sign-in setting revokes every member's token and cancels pending sign-ins, so people sign in again. The proxy URL and mode are fixed; create a new provider to change them. Keys are write-only. Requires the Manage Gateway providers permission and Gateway management; session callers must recently reauthenticate.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
Den TypeID with 'ipr_' prefix and a 26-character base32 suffix.
Request body
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).
issued + mirror: for someone with no key to copy, create per-team keys, or report them and create nothing.
Directory (tenant) ID of the Entra ID tenant, a GUID.
Application (client) ID of the Entra app registration people sign in to.
A client secret of that app registration. Write-only.
One API scope that app registration exposes, for example api://<application-id>/access. LiteLLM must accept access tokens for it; Microsoft Graph and Azure Cognitive Services scopes are refused.
Issuer URL of the authorization server people sign in with, exactly as its discovery document names it, for example https://example.okta.com/oauth2/default. OpenWork reads <oidcIssuer>/.well-known/openid-configuration. It must issue signed access tokens (JWTs) LiteLLM can check; Okta's org authorization server does not, so use a custom one.
The API scopes that authorization server issues LiteLLM access tokens for, separated by spaces, for example litellm. OpenWork adds openid, profile and offline_access itself.
The LiteLLM model names people may use. OpenWork holds no LiteLLM key in this mode, so it cannot read them from the proxy.
Response
Update LiteLLM key or key creation
Changes
- info
added the optional property
inferenceProvider/litellm/signInCheckto the response with the status
- info
- warning
added the new
oauth_oidcenum value to theinferenceProvider/credentials/items/kindresponse property for the response status - warning
added the new
oidcenum value to theinferenceProvider/litellm/keySource/anyOf[subschema #1]response property for the response status
4 more changes in this revision
- warning