Skip to main content
PUT
Set Organisation Llm Key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Api-key
string | null

Path Parameters

provider
enum<string>
required

Providers for which an organisation can bring its own API key.

Values match the provider column and the LLMProvider values used by the chatbot LLM client. The Secret Manager payload is always {"api_key": "<key>"}. Kept separate from common.secrets.SecretType so BYO LLM keys never mix with the generic organisation Secrets subsystem.

Available options:
openai,
anthropic,
google,
xai,
openrouter

Body

application/json
api_key
string
required
Minimum string length: 1

Response

Successful Response

provider
string
required
is_set
boolean
required
key_last4
string
required
enabled
boolean
required
updated_at
string<date-time>
required