Email Validation Flow
Email validation is required before a user can fully log in. The flow consists of two steps:Request Email Validation
POST /user/email/validation/request
Sends a 6-digit validation code to the provided email address. This is used during initial account setup when email hasn’t been validated yet.
hashUser for verification)
Body Parameters
The email address to validate.
The Steam ID of the user. Defaults to the connected user if not provided.
SHA-256 hash of the user’s Steam ID + login key. Obtained from the login error response with code
0x00000001.| Status | Message |
|---|---|
error | Invalid hashUser |
error | Email already validated |
error | Failed to create email validation request! Need to wait 5 mins! |
error | Invalid email format |
error | Email parameter is required |
There is a 5-minute cooldown between validation requests.
Validate Email
POST /user/email/validation/validate
Validates the email using the code sent in the previous step. On success, returns the JWT token for authentication.
hashUser for verification)
Body Parameters
The 6-digit validation code received by email. Can be a string or an array of individual digits.
The Steam ID of the user. Defaults to the connected user if not provided.
SHA-256 hash of the user’s Steam ID + login key.
The encrypted JWT token received from the login response (code
0x00000001).The decrypted JWT token to use for subsequent authenticated requests.
Email Change Flow
Changing an email requires 2FA to be enabled and follows a similar request/validate pattern.Request Email Change
POST /user/email/change/request
Sends a validation code to the new email address. Requires 2FA authentication.
connected, 2fa
Body Parameters
The new email address to change to.
| Status | Message |
|---|---|
error | Invalid email format |
error | Failed to create email change request! Need to wait 5 mins! |
error | Email parameter is required |
There is a 5-minute cooldown between email change requests.
Validate Email Change
POST /user/email/change/validate
Validates the email change request using the code sent to the new email.
connected, 2fa
Body Parameters
The 6-digit validation code received at the new email address. Can be a string or an array of individual digits.
| Status | Message |
|---|---|
error | Can’t validate email change |
error | code parameter is required |