Skip to main content

Provider credentials

MethodPathDescription
GET/api/organizations/{orgId}/ai-providerWhich providers and auth methods are configured, and the default model.
PUT/api/organizations/{orgId}/ai-providerSet credentials or the default model. Admin only.
DELETE/api/organizations/{orgId}/ai-provider?provider=&authMethod=Remove credentials for one auth method. Admin only.
POST, DELETE/api/organizations/{orgId}/auth-sandboxCreate or tear down the sandbox used to complete a claude_code or codex login. Body { provider }.
POST/api/organizations/{orgId}/auth-sandbox/checkCheck whether the login completed. Body { sandboxId, provider }.
POST/api/organizations/{orgId}/auth-sandbox/clearClear a stored OAuth login. Body { provider }.

PUT /ai-provider takes a discriminated union on operation:

operationOther fields
default_modelmodel
anthropic_api_keyanthropicApiKey, optional model
anthropic_aws_bedrockregion, bedrockApiKey, optional model
anthropic_claude_codenone, the login happens in an auth sandbox
openai_api_keyopenaiApiKey, optional model
openai_codexnone, the login happens in an auth sandbox