Skip to main content
PUT
Choose the active AI provider

Authorizations

Authorization
string
header
required

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

Body

application/json
provider
enum<string>
required
Available options:
ankra,
anthropic,
openai_compatible,
openrouter

Response

The provider settings after the switch

The organisation's AI provider settings.

provider
enum<string>
required

The active provider.

Available options:
ankra,
anthropic,
openai_compatible,
openrouter
anthropic
object
required

Whether an organisation API key is stored for a provider, with a masked preview.

openai_compatible
object
required

The organisation's single OpenAI-compatible endpoint configuration.

openrouter
object
required

Whether an organisation API key is stored for a provider, with a masked preview.