Ways to sign in
Email and password
POST /api/v1/auth/register, then confirm the address with the emailed code before signing in.GET /api/v1/auth/oauth/google/initiate returns the URL to send the user to; the callback completes the sign-in.Telegram
POST /api/v1/auth/oauth/telegram takes the payload from Telegram’s login widget.LoginResponse carrying the session tokens. POST /api/v1/auth/refresh renews them and POST /api/v1/auth/logout ends the session.
Passwords
Two-factor authentication
1
Start the setup
POST /api/v1/users/me/two-factor/setup returns the secret and provisioning data for an authenticator app.2
Confirm a code
POST /api/v1/users/me/two-factor/verify with a code from the app turns 2FA on and answers with your recovery codes.3
Store the recovery codes
They are the way back in if the authenticator is lost.
POST /api/v1/users/me/two-factor/recovery-codes/regenerate issues a fresh set and invalidates the old one.POST /api/v1/auth/login, then POST /api/v1/auth/login/two-factor with the code.
Turn it off with POST /api/v1/users/me/two-factor/disable, which also requires a current code.
GET /api/v1/users/me/security reports the account’s current security state.
Profile and notifications
GET/PATCH /api/v1/users/me read and update the profile.
GET/PATCH /api/v1/users/me/notifications control which notifications you receive — placement approvals, negotiation results, billing events.