POST /api/v1/auth/verify-email
Verify a user's email address using the verification code sent during registration. On success, the account is activated and authentication cookies are set.
Authentication​
None
Request​
| Field | Type | Required | Description |
|---|---|---|---|
user_id | int64 | Yes | User ID returned from sign-up |
verification_code | string | Yes | Code received via email |
Example​
curl -X POST https://intotes.com/api/v1/auth/verify-email \
-H "Content-Type: application/json" \
-d '{
"user_id": 42,
"verification_code": "482916"
}'
Response​
200 OK​
Sets access_token and refresh_token as HTTP-only cookies. Returns the raw user object (not the UserInfo wrapper).
{
"success": true,
"message": "Email verified successfully",
"user": {
"id": 42,
"name": "",
"email": "user@example.com",
"role": "user",
"balance": 0,
"bonus_balance": 0,
"total_deposited": 0,
"total_withdrawn": 0,
"total_volume": 0,
"total_losses_kopecks": 0,
"used_bonus": false,
"views": 0,
"followers": 0,
"created_at": "2026-04-04T12:00:00Z",
"language": "en",
"theme": "s",
"referral_earnings": 0,
"oauth_provider": "",
"oauth_id": "",
"email_verified": true,
"profile_hidden": false,
"completed_orders": 0,
"is_banned": false,
"is_p2p_platform_account": false,
"exclude_from_platform_pnl": false,
"telegram_verified": false,
"children": null,
"txs": null
}
}
Errors​
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_CODE | Verification code is incorrect or expired |
| 400 | MISSING_FIELDS | User ID and verification code are required |