---
title: "Choose the company the website assistant uses, or turn the model off"
method: POST
path: "/v1/admin/assistant-provider/active"
tags: ["Operations"]
---

# Choose the company the website assistant uses, or turn the model off

`POST /v1/admin/assistant-provider/active`

## Request

- Base URL: `https://loppee.com`
- URL: `https://loppee.com/v1/admin/assistant-provider/active`
- Auth: HTTP bearer

Human manage_team, two-step sign-in and a confirmation within the last 10 minutes. Switches to a company whose key is already saved; null turns the language model off, and the assistant then answers with a direct search. Takes effect on the next conversation turn, with no deploy.

## Request body

- object
  - `provider` 'gemini' | 'groq' | 'openai' | 'anthropic' | 'custom', nullable, required

## Response `200`

Choose the company the website assistant uses, or turn the model off response

- object
  - `schema_version` '1.0', required
  - `assistant_enabled` boolean, required
  - `storage` 'available' | 'unavailable', required
  - `in_use` object, required
    - `source` 'back_office' | 'environment' | 'none', required
    - `provider` 'gemini' | 'groq' | 'openai' | 'anthropic' | 'custom', nullable, required
    - `label` string, nullable, required
    - `model` string, nullable, required
  - `environment_fallback` object, nullable, required
    - `provider` 'gemini' | 'groq' | 'openai' | 'anthropic' | 'custom', required
    - `model` string, required
  - `providers` object[], required
    - `provider` 'gemini' | 'groq' | 'openai' | 'anthropic' | 'custom', required
    - `label` string, required
    - `model` string, required
    - `base_url` string, nullable, required
    - `custom_wire` 'chat_completions' | 'anthropic_messages', nullable, required
    - `is_active` boolean, required
    - `key_stored` true, required
    - `key_set_at` string, required
    - `updated_at` string, required
  - `catalog` object[], required
    - `id` 'gemini' | 'groq' | 'openai' | 'anthropic' | 'custom', required
    - `label` string, required
    - `default_model` string, required
    - `suggested_models` string[], required
    - `key_page` string, required
    - `free_tier` boolean, required
    - `data_use_note` string, required
    - `needs_address` boolean, required
  - `last_problem` object, nullable, required
    - `provider` 'gemini' | 'groq' | 'openai' | 'anthropic' | 'custom', required
    - `outcome` 'key_rejected' | 'quota_spent' | 'could_not_check', required
    - `at` string, required

## Other responses

- `400`: ErrorResponse
- `401`: ErrorResponse
- `403`: ErrorResponse
- `404`: ErrorResponse
- `409`: ErrorResponse
- `413`: ErrorResponse
- `429`: RateLimitError
- `default`: ErrorResponse

---

[API](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents.md) · [All operations](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/revisions/37285f7cddcd?raw)
