v1

latestOpenAPI 3.1.02026-07-26400501584.0 KB
Cabinet Auth

Auth Telegram Widget

Authenticate using Telegram Login Widget data.

This endpoint validates data from Telegram Login Widget and returns JWT tokens for authenticated access.

post/cabinet/auth/telegram/widget

Request body

idinteger required

Telegram user ID

first_namestring required

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 required

Unix timestamp of authentication

hashstring required

Authentication hash

campaign_slugstring nullable

Campaign slug from web link

referral_codestring nullable

Referral code of inviter

Response

Successful Response

access_tokenstring required
refresh_tokenstring required
token_typestring
expires_ininteger required