---
title: "Anon Session"
method: POST
path: "/web/session/anon"
tags: ["web: вход"]
---

# Anon Session

`POST /web/session/anon`

## Request

- Base URL: `https://tgmarket.io` (the document declares no server; this is the origin it was published from)
- URL: `https://tgmarket.io/web/session/anon`
- Auth: none declared

Выдаёт анонимную сессию. Вызывают бут-заглушка Next.js (POST /session/renew) и middleware.

При включённых ключах Turnstile (KAN-181) сессию получает браузер, решивший невидимую капчу
(action «boot») — скрейпер без браузера больше не фермирует сессии одним запросом. Деградации:
скрипт CF не загрузился / siteverify недоступен — сессия с лимитами ANON_DC (человек сайт видит,
ферма — втрое меньшие квоты). Без ключей — как раньше, без капчи.

## Request body

- AnonSessionIn
  - `captcha_token` string, nullable
  - `cf_unreachable` boolean

## Response `200`

Successful Response

- AnonSessionOut
  - `token` string, required
  - `max_age` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tgmarket/apis/tg-market-api.md) · [All operations](https://skmtc.dev/tgmarket/apis/tg-market-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tgmarket/apis/tg-market-api/revisions/15aba68e1fef?raw)
