v1

latestOpenAPI 3.1.02026-07-26400501584.0 KB
Cabinet Account Linking

Link Telegram

Link Telegram account via WebApp initData, OIDC id_token, or Login Widget.

post/cabinet/auth/account/link/telegram

Request body

init_datastring nullable

Telegram WebApp initData string

id_tokenstring nullable

Telegram OIDC id_token (JWT)

idinteger nullable

Telegram user ID from Login Widget

first_namestring nullable

User's first name

last_namestring nullable

User's last name

usernamestring nullable

User's username

photo_urlstring nullable

User's photo URL

auth_dateinteger nullable

Unix timestamp of authentication

hashstring nullable

Authentication hash (SHA-256 hex)

Response

Successful Response

successboolean required
messagestring nullable
merge_requiredboolean
merge_tokenstring nullable