Skip to main content
POST
/
api
/
ai-models
/
organization
/
{organizationId}
/
api-key
Set or update API key for a provider
curl --request POST \
  --url https://your-instance.example.com/api/ai-models/organization/{organizationId}/api-key \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "anthropic",
  "apiKey": "<string>",
  "isEnabled": true
}
'
{}

Authorizations

Authorization
string
header
required

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

Path Parameters

organizationId
string
required

Body

application/json
provider
enum<string>
required
Available options:
anthropic,
openai,
google
apiKey
string
required
isEnabled
boolean

Response

API key updated

Generic response envelope. Endpoint-specific fields are intentionally open.