Skip to main content
POST
Oauth Callback

Path Parameters

provider
enum<string>
required
Available options:
google,
yandex,
discord,
vk

Body

application/json
code
string
required

Authorization code from provider

Required string length: 1 - 2048
state
string
required

CSRF state token

Required string length: 1 - 128
device_id
string | null

Device ID from VK ID callback

Maximum string length: 256
campaign_slug
string | null

Campaign slug from web link

Required string length: 1 - 64
Pattern: ^[a-zA-Z0-9_-]+$
referral_code
string | null

Referral code of inviter

Maximum string length: 32
Pattern: ^[a-zA-Z0-9_-]+$

Response

Successful Response

Full authentication response with tokens and user.

access_token
string
required
refresh_token
string
required
expires_in
integer
required
user
UserResponse · object
required

User data response.

token_type
string
default:bearer
campaign_bonus
CampaignBonusInfo · object | null

Info about campaign bonus applied during auth.