> For the complete documentation index, see [llms.txt](https://kuik.gitbook.io/kuik-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kuik.gitbook.io/kuik-docs/format-podpisok.md).

# Формат подписок

Прямая ссылка подписки должна вернуть успешный HTTPS-ответ с конфигурациями в теле. Метаданные, включая название и остаток трафика, передаются [HTTP-заголовками](https://kuik.gitbook.io/kuik-docs/http-zagolovki.md).

## Тело ответа

| Формат    | Содержимое                                                                                                                 |
| --------- | -------------------------------------------------------------------------------------------------------------------------- |
| Текст     | Одна ссылка подключения на строку, тип ответа `text/plain`.                                                                |
| Base64    | Список ссылок, закодированный целиком как UTF-8 в Base64 или Base64URL.                                                    |
| Xray JSON | Один объект конфигурации либо массив объектов, тип ответа `application/json`. Каждый объект становится отдельным профилем. |

Для полного Xray JSON задайте название профиля в верхнеуровневом поле `remarks`. Если Xray-конфигурация использует балансировщик, набор серверов для него задают селекторы исходящих подключений в JSON. При настройке проверяйте, что селекторы совпадают с тегами нужных исходящих подключений.

При импорте KUIK подстраивает локальные входы под VPN-туннель. Если правила ссылаются на теги входов или исходящих подключений, проверьте их работу на устройстве с вашей конфигурацией.

## Ссылки подключения

| Протокол                  | Схема                    | Платформа     |
| ------------------------- | ------------------------ | ------------- |
| VLESS                     | `vless://`               | iOS и Android |
| VMess                     | `vmess://`               | iOS и Android |
| Trojan                    | `trojan://`              | iOS и Android |
| Shadowsocks               | `ss://`                  | iOS и Android |
| Hysteria2                 | `hysteria2://`, `hy2://` | iOS и Android |
| WireGuard                 | `wireguard://`           | iOS и Android |
| WireGuard, короткая схема | `wg://`                  | Android       |
| SOCKS                     | `socks://`, `socks5://`  | iOS           |

Ссылки можно вставить непосредственно в окно импорта. Для запуска импорта из сайта или бота используйте [схему `kuik://`](https://kuik.gitbook.io/kuik-docs/skhemy-url-adresov.md).

## Remnawave

Если вы отдаёте Xray JSON только KUIK, сопоставьте User-Agent запроса без учёта регистра, например по шаблону `^KUIK/`, и выберите формат ответа `XRAY_JSON`. Заголовки оформления и автоматизации задавайте в правиле, которое обслуживает фактический ответ подписки. Если у панели есть отдельный ответ `/json`, удобно выставить одинаковые значения в обеих выдачах.

[Готовый пример заголовков](https://kuik.gitbook.io/kuik-docs/primer-otveta-provaidera.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kuik.gitbook.io/kuik-docs/format-podpisok.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
