POST /api/v1/auth/sign-up
Register a new user account. On success, a verification code is sent to the provided email address. The user must verify their email before they can sign in. No authentication cookies are set at this stage.
Authentication​
None
Request​
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | User's email address |
password | string | Yes | Account password |
language | string | No | Preferred language ("en" or "ru"). Defaults to "en" |
referral_code | string | No | Referral code from an existing user |
Example​
curl -X POST https://intotes.com/api/v1/auth/sign-up \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securePassword123",
"language": "en",
"referral_code": "ABC123"
}'
Response​
200 OK​
No cookies are set. The user must verify their email (see Verify Email) before signing in.
{
"success": true,
"message": "User created successfully. Please check your email for verification code.",
"user_id": 42
}
Errors​
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_REQUEST | Missing or malformed required fields |
| 409 | EMAIL_EXISTS | An account with this email already exists |