> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elumenta.ru/llms.txt
> Use this file to discover all available pages before exploring further.

# Настройки пользователя

> Получение и обновление предпочтений пользователя

## Получение настроек

```bash theme={null}
curl https://elumenta.ru/api/v2/user/settings \
  -H "Authorization: Bearer nb_ВАШ_КЛЮЧ"
```

```json theme={null}
{
  "language": "ru",
  "image_format": "webp",
  "notifications_enabled": true,
  "default_image_size": "1024x1024"
}
```

## Обновление настроек

```bash theme={null}
curl -X PATCH https://elumenta.ru/api/v2/user/settings \
  -H "Authorization: Bearer nb_ВАШ_КЛЮЧ" \
  -H "Content-Type: application/json" \
  -d '{"image_format": "png", "language": "en"}'
```

<ParamField body="language" type="string">
  Язык интерфейса: `en` | `ru`
</ParamField>

<ParamField body="image_format" type="string">
  Формат изображений по умолчанию: `webp` (по умолчанию) | `png` | `jpeg`
</ParamField>

<ParamField body="notifications_enabled" type="boolean">
  Включить/выключить уведомления в Telegram-боте.
</ParamField>

Возвращает `200 OK` с обновлёнными настройками.
