Skip to main content

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​

FieldTypeRequiredDescription
emailstringYesUser's email address
passwordstringYesAccount password
languagestringNoPreferred language ("en" or "ru"). Defaults to "en"
referral_codestringNoReferral 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​

StatusCodeDescription
400INVALID_REQUESTMissing or malformed required fields
409EMAIL_EXISTSAn account with this email already exists