# Get knowledge settings

```http
GET https://trydimmi.com/api/v1/knowledge/settings
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `ai:read`.

## Response 200 (OK)

- `data` (object, required)
  - `active_model` (string | null, required): The embedding model searches use now, written provider:model@dims, such as openai:text-embedding-3-small@1024. Null when none is set.
  - `builtin_model` (string | null, required): The embedding model built into this install, written provider:model@dims. Null when the install has none.
  - `embedding_key_id` (string | null, required): Id of the AI provider key the active model embeds with, starting with aik_. Null means the built-in embedder.
  - `embeddings_error` (string | null, required): Why embeddings are not healthy, in words. Null when there is no error.
  - `embeddings_status` (string, required): Where the workspace's embeddings stand: none, ready, building (a switch is in progress) or degraded.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `pending_key_id` (string | null, required): Id of the AI provider key the pending model embeds with, starting with aik_. Null for the built-in embedder or when no switch is under way.
  - `pending_model` (string | null, required): The model being built for a switch, written provider:model@dims. Null when no switch is under way.
  - `previous_model` (string | null, required): The model used before the last switch, written provider:model@dims. Null when there was none.
  - `reembed` (object, required)
    - `done` (integer, required): How many pieces of text have been embedded with the new model so far.
    - `failed` (integer, required): How many pieces of text the provider refused to embed.
    - `started_at` (string | null, required): When building the new model's vectors began. Null when no build has run.
    - `total` (integer, required): How many distinct pieces of text the new model has to embed in all.
  - `switched_at` (string | null, required): When the workspace last switched to its active model. Null when it never switched.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/knowledge/settings' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "active_model": "<string>",
    "builtin_model": "<string>",
    "embedding_key_id": "<string>",
    "embeddings_error": "<string>",
    "embeddings_status": "<string>",
    "object": "<string>",
    "pending_key_id": "<string>",
    "pending_model": "<string>",
    "previous_model": "<string>",
    "reembed": {
      "done": 123,
      "failed": 123,
      "started_at": "2026-11-01T09:30:00Z",
      "total": 123
    },
    "switched_at": "2026-11-01T09:30:00Z"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
