# Get shared AI settings

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

## Authorization

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

## Response 200 (OK)

- `data` (object, required)
  - `answer_key_id` (string | null, required): Id of the provider key every agent answers with until it picks its own (starts with aik_). Null when none is set.
  - `answer_model` (string | null, required): The model every agent answers with until it picks its own. Null when none is set.
  - `classifier_key_id` (string | null, required): Id of the provider key that sorts each customer message before an agent answers (starts with aik_). Null when none is set.
  - `classifier_model` (string | null, required): The model that sorts each customer message. Null when none is set.
  - `fallback_key_id` (string | null, required): Id of the provider key used when an agent's answer key fails (starts with aik_). Null when there is none.
  - `fallback_model` (string | null, required): The model used when an agent's answer model fails. Null when there is none.
  - `monthly_spend_cap_micros` (integer | null, required): Most the workspace may spend on dimmi in a month, in millionths of a US dollar. Null when there is no cap.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.

## 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/ai/settings' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "answer_key_id": "<string>",
    "answer_model": "<string>",
    "classifier_key_id": "<string>",
    "classifier_model": "<string>",
    "fallback_key_id": "<string>",
    "fallback_model": "<string>",
    "monthly_spend_cap_micros": 123,
    "object": "<string>"
  }
}
```

---

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