> For the complete documentation index, see [llms.txt](https://docs.tumbler.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tumbler.app/ru/nachat/fetch-url.md).

# Проверить subscription URL

## Для кого

Команды провайдера, у которых уже есть ссылка подписки или которые готовят endpoint для Tumbler.

## Что можно сделать

* Проверить, что существующий URL подходит для backend fetcher.
* Понять минимальные требования к домену, порту, редиректам и стабильности.
* Решить, показывать raw URL пользователю или оборачивать его в `crypt3`.

## Примеры

* `https://provider.example.com/sub/u_123`
* `https://cdn.provider.example.com/sub/u_123`
* `https://provider.example.com/sub/u_123?v=2026-07-01`, если версия детерминирована.

## См. также

* [getting-started/add-link.md](/ru/nachat/add-link.md)
* [operations/fetcher-http-contract.md](/ru/kontrakt-podpiski/fetcher-http-contract.md)
* [subscription/response-formats.md](/ru/kontrakt-podpiski/response-formats.md)
* [subscription/metadata.md](/ru/kontrakt-podpiski/metadata.md)
* [operations/mirrors-and-migration.md](/ru/uluchsheniya-posle-pervogo-zapuska/mirrors-and-migration.md)

## Что такое subscription URL

Subscription URL - это адрес, с которого Tumbler backend скачивает конфиги провайдера.

Пользователь может получить этот URL напрямую только в raw HTTPS сценарии. В `crypt3` сценарии пользователь видит только зашифрованный source link, а backend после расшифровки сам обращается к настоящему URL.

## Рекомендации

* Используйте HTTPS. HTTP допустим только если это осознанный compatibility case.
* Держите порт стандартным: 443 для HTTPS или 80 для HTTP.
* Не используйте `username:password@host` в URL: credentials попадут в логи, referrer и сообщения об ошибках.
* Не завязывайте ответ на cookies или интерактивную авторизацию. Backend fetcher делает обычный server-side `GET`.
* Если ссылка одноразовая или чувствительная, не отдавайте её как raw HTTPS пользователю. Используйте `crypt3`.
* Путь должен жить долго. Если переносите endpoint, используйте `new-url`, `new-domain`, зеркала или стабильный redirect.
* Ответ должен быть одинаковым для повторных fetcher-запросов, пока подписка не изменилась.
* Для больших провайдеров включите `ETag`/`Last-Modified`, чтобы backend мог использовать `304 Not Modified`.

## Как это связано с add link

Raw HTTPS сценарий:

```
subscription URL: https://provider.example.com/sub/u_123
add link:         tumbler://add?link=https%3A%2F%2Fprovider.example.com%2Fsub%2Fu_123
```

crypt3 сценарий:

```
real URL:         https://provider.example.com/sub/u_123
source link:      schema://crypt3/<token>
add link:         tumbler://add?link=schema%3A%2F%2Fcrypt3%2F...
```

## Минимальные требования к ответу

* HTTP status `200 OK` для актуальной версии подписки.
* `Content-Type: text/plain; charset=utf-8` или `application/json; charset=utf-8`.
* UTF-8 без BOM.
* Тело содержит хотя бы один валидный VLESS узел или JSON/Xray/sing-box объект, из которого можно извлечь VLESS outbound.
* Размер тела не превышает лимиты fetcher. Рекомендуемый размер - до 200 KB, жёсткий лимит описан в [fetcher-http-contract.md](/ru/kontrakt-podpiski/fetcher-http-contract.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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tumbler.app/ru/nachat/fetch-url.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
