Skip to content

Auth v2

Reference for the Auth v2 endpoints on Roblox.

Base URL: https://auth.roblox.com

Method Path Name
GET /v2/auth/metadata getAuthMetadata
POST /v2/identity-verification/login postIdentityVerificationLogin
POST /v2/login postLogin
POST /v2/login/linked postLoginLinked
POST /v2/logout postLogout
POST /v2/logoutfromallsessionsandreauthenticate postLogoutfromallsessionsandreauthenticate
GET /v2/metadata getMetadata
GET /v2/passwords/current-status getPasswordsCurrentStatus
GET /v2/passwords/reset getPasswordsReset
POST /v2/passwords/reset postPasswordsReset
POST /v2/passwords/reset/send postPasswordsResetSend
POST /v2/passwords/reset/verify postPasswordsResetVerify
GET /v2/passwords/validate getPasswordsValidate
POST /v2/passwords/validate postPasswordsValidate
GET /v2/recovery/metadata getRecoveryMetadata
GET /v2/revert/account getRevertAccount
POST /v2/revert/account postRevertAccount
POST /v2/revert/invalidate-tickets postRevertInvalidateTickets
POST /v2/session/refresh postSessionRefresh
POST /v2/signup postSignup
POST /v2/signup/linked postSignupLinked
POST /v2/user/passwords/change postUserPasswordsChange
POST /v2/username postUsername
GET /v2/username/change/price getUsernameChangePrice
GET /v2/usernames getUsernames
POST /v2/usernames/recover postUsernamesRecover
GET /v2/usernames/validate getUsernamesValidate
POST /v2/usernames/validate postUsernamesValidate

GET /v2/auth/metadata

Gets Auth meta data

Usage
import { fetchApi } from 'rozod';
import { getAuthMetadata } from 'rozod/endpoints/authv2';
const data = await fetchApi(getAuthMetadata, undefined);
Field Type Description
cookieLawNoticeTimeout number

POST /v2/identity-verification/login

Endpoint for login with identity verification

Usage
import { fetchApi } from 'rozod';
import { postIdentityVerificationLogin } from 'rozod/endpoints/authv2';
const data = await fetchApi(postIdentityVerificationLogin, {
body: { /* ... */ }
});
Field Type Description
loginTicket string
resultToken string

Type: unknown

Status Description
403 0: Token Validation Failed
1: Invalid login ticket.
2: Invalid result token.
3: Invalid user.
4: Authentication failure.

POST /v2/login

Authenticates a user.

Usage
import { fetchApi } from 'rozod';
import { postLogin } from 'rozod/endpoints/authv2';
const data = await fetchApi(postLogin, {
body: { /* ... */ }
});
Field Type Description
ctype `“Email” “Username”
cvalue string
password string
userId number
securityQuestionSessionId string
securityQuestionRedemptionToken string
secureAuthenticationIntent object See below
accountBlob string
accountLinkParameters object See below
captchaId string
captchaToken string
captchaProvider string
challengeId string

secureAuthenticationIntent fields:

Field Type Description
clientPublicKey string
clientEpochTimestamp number
saiSignature string
serverNonce string

accountLinkParameters fields:

Field Type Description
LinkingPlatform `“Invalid” “Xbox”
Field Type Description
user object See below
twoStepVerificationData object See below
identityVerificationLoginTicket string
isBanned boolean
accountBlob string
shouldUpdateEmail boolean
recoveryEmail string
passkeyRegistrationSucceeded boolean
shouldAutoLoginFromRecovery boolean
shouldPrompt2svRemoval boolean
shouldPromptPasskeyAddition boolean
shouldPromptCredentialInvalidation boolean

user fields:

Field Type Description
id number
name string
displayName string

twoStepVerificationData fields:

Field Type Description
mediaType `“Email” “SMS”
ticket string
Status Description
400 0: An unexpected error occurred.
3: Username and Password are required. Please try again.
8: Login with received credential type is not supported.
403 0: Token Validation Failed
1: Incorrect username or password. Please try again.
2: You must pass the robot test before logging in.
4: Account has been locked. Please request a password reset.
5: Unable to login. Please use Social Network sign on.
6: Account issue. Please contact Support.
9: Unable to login with provided credentials. Default login is required.
10: Received credentials are unverified.
12: Existing login session found. Please log out first.
14: The account is unable to log in. Please log in to the LuoBu app.
15: Too many attempts. Please wait a bit.
27: The account is unable to login. Please log in with the VNG app.
429 7: Too many attempts. Please wait a bit.
503 11: Service unavailable. Please try again.

POST /v2/login/linked

Endpoint for logging in a user, specifically for linked

Usage
import { fetchApi } from 'rozod';
import { postLoginLinked } from 'rozod/endpoints/authv2';
const data = await fetchApi(postLoginLinked, {
body: { /* ... */ }
});
Field Type Description
ctype `“Email” “Username”
cvalue string
password string
userId number
securityQuestionSessionId string
securityQuestionRedemptionToken string
secureAuthenticationIntent object See below
accountBlob string
accountLinkParameters object See below
captchaId string
captchaToken string
captchaProvider string
challengeId string

secureAuthenticationIntent fields:

Field Type Description
clientPublicKey string
clientEpochTimestamp number
saiSignature string
serverNonce string

accountLinkParameters fields:

Field Type Description
LinkingPlatform `“Invalid” “Xbox”
Field Type Description
user object See below
twoStepVerificationData object See below
identityVerificationLoginTicket string
isBanned boolean
accountBlob string
shouldUpdateEmail boolean
recoveryEmail string
passkeyRegistrationSucceeded boolean
shouldAutoLoginFromRecovery boolean
shouldPrompt2svRemoval boolean
shouldPromptPasskeyAddition boolean
shouldPromptCredentialInvalidation boolean

user fields:

Field Type Description
id number
name string
displayName string

twoStepVerificationData fields:

Field Type Description
mediaType `“Email” “SMS”
ticket string
Status Description
400 0: An unexpected error occurred.
3: Username and Password are required. Please try again.
8: Login with received credential type is not supported.
403 0: Token Validation Failed
1: Incorrect username or password. Please try again.
2: You must pass the robot test before logging in.
4: Account has been locked. Please request a password reset.
5: Unable to login. Please use Social Network sign on.
6: Account issue. Please contact Support.
9: Unable to login with provided credentials. Default login is required.
10: Received credentials are unverified.
12: Existing login session found. Please log out first.
14: The account is unable to log in. Please log in to the LuoBu app.
15: Too many attempts. Please wait a bit.
27: The account is unable to login. Please log in with the VNG app.
43: This account is not eligible for this platform.
429 7: Too many attempts. Please wait a bit.
503 11: Service unavailable. Please try again.

POST /v2/logout

Destroys the current authentication session.

Usage
import { fetchApi } from 'rozod';
import { postLogout } from 'rozod/endpoints/authv2';
const data = await fetchApi(postLogout, undefined);

Type: unknown

Status Description
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed

postLogoutfromallsessionsandreauthenticate

Section titled “postLogoutfromallsessionsandreauthenticate”

POST /v2/logoutfromallsessionsandreauthenticate

Logs out user from all other sessions.

Usage
import { fetchApi } from 'rozod';
import { postLogoutfromallsessionsandreauthenticate } from 'rozod/endpoints/authv2';
const data = await fetchApi(postLogoutfromallsessionsandreauthenticate, {
body: { /* ... */ }
});
Field Type Description
SecureAuthenticationIntent object See below

SecureAuthenticationIntent fields:

Field Type Description
clientPublicKey string
clientEpochTimestamp number
saiSignature string
serverNonce string

Type: unknown

Status Description
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed

GET /v2/metadata

Get the metadata

Usage
import { fetchApi } from 'rozod';
import { getMetadata } from 'rozod/endpoints/authv2';
const data = await fetchApi(getMetadata, undefined);
Field Type Description
isUpdateUsernameEnabled boolean
ftuxAvatarAssetMap string
IsEmailUpsellAtLogoutEnabled boolean
ShouldFetchEmailUpsellIXPValuesAtLogout boolean
IsAccountRecoveryPromptEnabled boolean
IsContactMethodRequiredAtSignup boolean
IsUserAgreementsSignupIntegrationEnabled boolean
IsPasswordRequiredForUsernameChange boolean
IsPasskeyFeatureEnabled boolean
IsAltBrowserTracker boolean
IsLoginRedirectPageEnabled boolean

GET /v2/passwords/current-status

Returns password status for current user, asynchronously.

Usage
import { fetchApi } from 'rozod';
import { getPasswordsCurrentStatus } from 'rozod/endpoints/authv2';
const data = await fetchApi(getPasswordsCurrentStatus, undefined);
Field Type Description
valid boolean
Status Description
401 0: Authorization has been denied for this request.

GET /v2/passwords/reset

Gets metadata needed for the password reset view.

Usage
import { fetchApi } from 'rozod';
import { getPasswordsReset } from 'rozod/endpoints/authv2';
const data = await fetchApi(getPasswordsReset, {
TargetType: /* unknown */,
Ticket: /* string */
});
Name Type Required Description
TargetType unknown Yes
Ticket string Yes
Field Type Description
users object[] See below

users[] item fields:

Field Type Description
userId number
username string
displayName string
Status Description
400 3: Request was empty.
9: The target type is invalid.
11: The password reset ticket is invalid.
14: The nonce is invalid.
403 11: The password reset ticket is invalid.
16: The ticket is expired.
500 0: Unknown error occured.
503 1: Feature temporarily disabled. Please try again later.

POST /v2/passwords/reset

Resets a password for a user that belongs to the password reset ticket.

Usage
import { fetchApi } from 'rozod';
import { postPasswordsReset } from 'rozod/endpoints/authv2';
const data = await fetchApi(postPasswordsReset, {
body: { /* ... */ }
});
Field Type Description
targetType `“Email” “PhoneNumber”
ticket string
userId number
password string
passwordRepeated string
twoStepVerificationChallengeId string
twoStepVerificationToken string
accountBlob string
secureAuthenticationIntent object See below
newEmail string
passkeySessionId string
passkeyRegistrationResponse string

secureAuthenticationIntent fields:

Field Type Description
clientPublicKey string
clientEpochTimestamp number
saiSignature string
serverNonce string
Field Type Description
user object See below
twoStepVerificationData object See below
identityVerificationLoginTicket string
isBanned boolean
accountBlob string
shouldUpdateEmail boolean
recoveryEmail string
passkeyRegistrationSucceeded boolean
shouldAutoLoginFromRecovery boolean
shouldPrompt2svRemoval boolean
shouldPromptPasskeyAddition boolean
shouldPromptCredentialInvalidation boolean

user fields:

Field Type Description
id number
name string
displayName string

twoStepVerificationData fields:

Field Type Description
mediaType `“Email” “SMS”
ticket string
Status Description
400 3: Request was empty.
11: The password reset ticket is invalid.
12: The user is invalid.
20: The password is invalid.
21: Passwords do not match.
403 0: Token Validation Failed
16: The ticket is expired.
17: The nonce is expired.
500 0: Unknown error occured.
503 1: Feature temporarily disabled. Please try again later.

POST /v2/passwords/reset/send

Sends a password reset email or challenge to the specified target.

Usage
import { fetchApi } from 'rozod';
import { postPasswordsResetSend } from 'rozod/endpoints/authv2';
const data = await fetchApi(postPasswordsResetSend, {
body: { /* ... */ }
});
Field Type Description
targetType `“Email” “PhoneNumber”
target string
captchaId string
captchaToken string
captchaProvider string
challengeId string
Field Type Description
nonce string
transmissionType `“Sms” “Email”`
Status Description
400 3: Request was empty.
9: The target type is invalid.
10: The target is invalid.
12: The user is invalid.
403 0: Token Validation Failed
18: Captcha is required.
23: Authenticate with Luobu instead.
429 2: Too many attempts. Please try again later.
500 0: Unknown error occured.
19: Message could not be sent.
503 1: Feature temporarily disabled. Please try again later.

POST /v2/passwords/reset/verify

Verifies a password reset challenge solution.

Usage
import { fetchApi } from 'rozod';
import { postPasswordsResetVerify } from 'rozod/endpoints/authv2';
const data = await fetchApi(postPasswordsResetVerify, {
body: { /* ... */ }
});
Field Type Description
targetType `“Email” “PhoneNumber”
nonce string
code string
Field Type Description
userTickets object[] See below

userTickets[] item fields:

Field Type Description
user object See below
ticket string

user fields:

Field Type Description
userId number
username string
displayName string
Status Description
400 3: Request was empty.
9: The target type is invalid.
14: The nonce is invalid.
403 0: Token Validation Failed
13: The code is invalid.
500 0: Unknown error occured.
503 1: Feature temporarily disabled. Please try again later.

GET /v2/passwords/validate

Endpoint for checking if a password is valid.

Usage
import { fetchApi } from 'rozod';
import { getPasswordsValidate } from 'rozod/endpoints/authv2';
const data = await fetchApi(getPasswordsValidate, {
Username: /* string */,
Password: /* string */
});
Name Type Required Description
Username string Yes
Password string Yes
Field Type Description
code `“ValidPassword” “WeakPasswordError”
message string
Status Description
400 1: Valid Username and Password are required. Please try again.

POST /v2/passwords/validate

Endpoint for checking if a password is valid.

Usage
import { fetchApi } from 'rozod';
import { postPasswordsValidate } from 'rozod/endpoints/authv2';
const data = await fetchApi(postPasswordsValidate, {
body: { /* ... */ }
});
Field Type Description
username string
password string
Field Type Description
code `“ValidPassword” “WeakPasswordError”
message string
Status Description
400 1: Valid Username and Password are required. Please try again.
403 0: Token Validation Failed

GET /v2/recovery/metadata

Get metadata for forgot endpoints

Usage
import { fetchApi } from 'rozod';
import { getRecoveryMetadata } from 'rozod/endpoints/authv2';
const data = await fetchApi(getRecoveryMetadata, undefined);
Field Type Description
isOnPhone boolean
codeLength number
isPhoneFeatureEnabledForUsername boolean
isPhoneFeatureEnabledForPassword boolean
isBedev2CaptchaEnabledForPasswordReset boolean
isUsernameRecoveryDeprecated boolean
Status Description
503 7: The Roblox WeChat API is currently unavailable.

GET /v2/revert/account

Get Revert Account ticket info

Usage
import { fetchApi } from 'rozod';
import { getRevertAccount } from 'rozod/endpoints/authv2';
const data = await fetchApi(getRevertAccount, {
ticket: /* string */
});
Name Type Required Description
ticket string Yes Ticket Guid to revert account.
Field Type Description
isTwoStepVerificationEnabled boolean
isEmailVerified boolean
isEmailChanged boolean
isPhoneVerified boolean
userId number
username string
ticket string
Status Description
400 2: The account revert ticket is not valid
403 13: Revert links are disabled for users in the Enhanced Protection Program.
503 1: This feature is disabled

POST /v2/revert/account

Submit Revert Account Request

Usage
import { fetchApi } from 'rozod';
import { postRevertAccount } from 'rozod/endpoints/authv2';
const data = await fetchApi(postRevertAccount, {
body: { /* ... */ }
});
Field Type Description
UserId number
NewPassword string
NewPasswordRepeated string
Ticket string
TwoStepVerificationChallengeId string
TwoStepVerificationToken string
Field Type Description
user object See below
twoStepVerificationData object See below
identityVerificationLoginTicket string
isBanned boolean
accountBlob string
shouldUpdateEmail boolean
recoveryEmail string
passkeyRegistrationSucceeded boolean
shouldAutoLoginFromRecovery boolean
shouldPrompt2svRemoval boolean
shouldPromptPasskeyAddition boolean
shouldPromptCredentialInvalidation boolean

user fields:

Field Type Description
id number
name string
displayName string

twoStepVerificationData fields:

Field Type Description
mediaType `“Email” “SMS”
ticket string
Status Description
400 2: The account revert ticket is not valid
3: Password is not valid
4: Passwords do not match
5: Password cannot be used
8: The account security ticket is expired.
403 0: Token Validation Failed
503 0: Unknown
1: This feature is disabled

POST /v2/revert/invalidate-tickets

Invalidates all account security tickets for the authenticated user.

Usage
import { fetchApi } from 'rozod';
import { postRevertInvalidateTickets } from 'rozod/endpoints/authv2';
const data = await fetchApi(postRevertInvalidateTickets, undefined);

Type: unknown

Status Description
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed
503 1: This feature is disabled

POST /v2/session/refresh

Logs out user from the current session and create a new one.

Usage
import { fetchApi } from 'rozod';
import { postSessionRefresh } from 'rozod/endpoints/authv2';
const data = await fetchApi(postSessionRefresh, undefined);

Type: unknown

Status Description
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed

POST /v2/signup

Endpoint for signing up a new user

Usage
import { fetchApi } from 'rozod';
import { postSignup } from 'rozod/endpoints/authv2';
const data = await fetchApi(postSignup, {
body: { /* ... */ }
});
Field Type Description
username string
password string
gender `“Unknown” “Male”
birthday string
displayName string
isTosAgreementBoxChecked boolean
signupType `“Regular” “Express”`
email string
locale string
assetIds number[]
bodyColorId number
bodyTypeScale number
headScale number
heightScale number
widthScale number
proportionScale number
referralData object See below
agreementIds string[]
identityVerificationResultToken string
secureAuthenticationIntent object See below
otpSession object See below
dataToken string
accountBlob string
passkeySessionId string
passkeyRegistrationResponse string
accountLinkParameters object See below
auditSystemContent object See below
captchaId string
captchaToken string
captchaProvider string
challengeId string

referralData fields:

Field Type Description
acquisitionTime string
acquisitionReferrer string
medium string
source string
campaign string
adGroup string
keyword string
matchType string
sendInfo boolean
requestSessionId string
offerId string

secureAuthenticationIntent fields:

Field Type Description
clientPublicKey string
clientEpochTimestamp number
saiSignature string
serverNonce string

otpSession fields:

Field Type Description
otpSessionToken string
otpContactType `“Unset” “Email”`

accountLinkParameters fields:

Field Type Description
LinkingPlatform `“Invalid” “Xbox”

auditSystemContent fields:

Field Type Description
capturedAuditContent object See below
additionalAuditContent string

capturedAuditContent fields:

Field Type Description
translationKey string
translationNamespace string
translatedSourceString string
parameters string
Field Type Description
userId number
starterPlaceId number
returnUrl string
accountBlob string
Status Description
400 Bad request
16: User agreement ids are null.
21: Empty account switch blob required
403 0: Token Validation Failed
2: Captcha Failed.
4: Invalid Birthday.
5: Invalid Username.
6: Username already taken.
7: Invalid Password.
8: Password and Username are same.
9: Password is too simple.
10: Email is invalid.
11: Asset is invalid.
12: Too many attempts. Please wait a bit.
17: One time Passcode session was not valid
22: Maximum logged in accounts limit reached.
429 3: Too many attempts. Please wait a bit.
500 Internal server error
15: Insert acceptances failed.
27: Pre-auth passkey registration failed
503 Service unavailable

POST /v2/signup/linked

Endpoint for signing up a new user through linked authentication.

Usage
import { fetchApi } from 'rozod';
import { postSignupLinked } from 'rozod/endpoints/authv2';
const data = await fetchApi(postSignupLinked, {
body: { /* ... */ }
});
Field Type Description
username string
password string
gender `“Unknown” “Male”
birthday string
displayName string
isTosAgreementBoxChecked boolean
signupType `“Regular” “Express”`
email string
locale string
assetIds number[]
bodyColorId number
bodyTypeScale number
headScale number
heightScale number
widthScale number
proportionScale number
referralData object See below
agreementIds string[]
identityVerificationResultToken string
secureAuthenticationIntent object See below
otpSession object See below
dataToken string
accountBlob string
passkeySessionId string
passkeyRegistrationResponse string
accountLinkParameters object See below
auditSystemContent object See below
captchaId string
captchaToken string
captchaProvider string
challengeId string

referralData fields:

Field Type Description
acquisitionTime string
acquisitionReferrer string
medium string
source string
campaign string
adGroup string
keyword string
matchType string
sendInfo boolean
requestSessionId string
offerId string

secureAuthenticationIntent fields:

Field Type Description
clientPublicKey string
clientEpochTimestamp number
saiSignature string
serverNonce string

otpSession fields:

Field Type Description
otpSessionToken string
otpContactType `“Unset” “Email”`

accountLinkParameters fields:

Field Type Description
LinkingPlatform `“Invalid” “Xbox”

auditSystemContent fields:

Field Type Description
capturedAuditContent object See below
additionalAuditContent string

capturedAuditContent fields:

Field Type Description
translationKey string
translationNamespace string
translatedSourceString string
parameters string
Field Type Description
userId number
starterPlaceId number
returnUrl string
accountBlob string
Status Description
400 Bad request
16: User agreement ids are null.
21: Empty account switch blob required
403 0: Token Validation Failed
2: Captcha Failed.
4: Invalid Birthday.
5: Invalid Username.
6: Username already taken.
7: Invalid Password.
8: Password and Username are same.
9: Password is too simple.
10: Email is invalid.
11: Asset is invalid.
12: Too many attempts. Please wait a bit.
17: One time Passcode session was not valid
22: Maximum logged in accounts limit reached.
29: Account Linking already exists on this account
30: Account Linking required but failed
429 3: Too many attempts. Please wait a bit.
500 Internal server error
15: Insert acceptances failed.
27: Pre-auth passkey registration failed
30: Account Linking required but failed
503 30: Account Linking required but failed

POST /v2/user/passwords/change

Changes the password for the authenticated user.

Usage
import { fetchApi } from 'rozod';
import { postUserPasswordsChange } from 'rozod/endpoints/authv2';
const data = await fetchApi(postUserPasswordsChange, {
body: { /* ... */ }
});
Field Type Description
currentPassword string
newPassword string
secureAuthenticationIntent object See below

secureAuthenticationIntent fields:

Field Type Description
clientPublicKey string
clientEpochTimestamp number
saiSignature string
serverNonce string

Type: unknown

Status Description
400 Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidCurrentPassword
OR
Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidPassword
401 0: Authorization has been denied for this request.
403 Roblox.Web.Authentication.Passwords.PasswordResponseCodes.PinLocked
0: Token Validation Failed
429 Roblox.Web.Authentication.Passwords.PasswordResponseCodes.Flooded

POST /v2/username

Change the user’s username

Usage
import { fetchApi } from 'rozod';
import { postUsername } from 'rozod/endpoints/authv2';
const data = await fetchApi(postUsername, {
body: { /* ... */ }
});
Field Type Description
username string
password string

Type: unknown

Status Description
400 5: You don't have enough Robux to change your username.
10: This username is already in use
11: Username not appropriate for Roblox
12: Usernames can be 3 to 20 characters long
13: Usernames can’t start or end with _ and can have at most one _
14: Only a-z, A-Z, 0-9, and _ are allowed
15: Username is null
16: Username might contain private information
17: This username is not available
18: Username is same as current
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed
1: PIN is locked.
2: A verified email is missing
3: Your password is incorrect.
100: Unknown birthday
500 0: An unknown error occured.
5: You don't have enough Robux to change your username.
503 4: The feature is currently not available. Please try again later.

GET /v2/username/change/price

Get the current price for a username change

Usage
import { fetchApi } from 'rozod';
import { getUsernameChangePrice } from 'rozod/endpoints/authv2';
const data = await fetchApi(getUsernameChangePrice, undefined);
Field Type Description
priceInRobux number
basePriceInRobux number
Status Description
401 0: Authorization has been denied for this request.

GET /v2/usernames

Gets a list of existing usernames on Roblox based on the query parameters

Usage
import { fetchApi } from 'rozod';
import { getUsernames } from 'rozod/endpoints/authv2';
const data = await fetchApi(getUsernames, {
username: /* string */
});
Name Type Required Description
username string Yes The username
Field Type Description
usernames string[]

POST /v2/usernames/recover

Sends an email of all accounts belonging to an email

Usage
import { fetchApi } from 'rozod';
import { postUsernamesRecover } from 'rozod/endpoints/authv2';
const data = await fetchApi(postUsernamesRecover, {
body: { /* ... */ }
});
Field Type Description
targetType `“Email” “PhoneNumber”
target string
Field Type Description
transmissionType `0 1`
Status Description
400 20: Invalid Email
21: Invalid Phone
23: No Account Found
403 0: Token Validation Failed
11: Too many attempts. Please wait a bit.
500 0: An unexpected error occurred.

GET /v2/usernames/validate

Checks if a username is valid.

Usage
import { fetchApi } from 'rozod';
import { getUsernamesValidate } from 'rozod/endpoints/authv2';
const data = await fetchApi(getUsernamesValidate, {
Username: /* string */,
Birthday: /* string */
});
Name Type Required Description
Username string Yes
Birthday string Yes
Field Type Description
code `“ValidUsername” “AlreadyInUseError”
message string
Status Description
400 1: A valid username is required.
2: A valid birthday or authenticated user is required.

POST /v2/usernames/validate

Checks if a username is valid.

Usage
import { fetchApi } from 'rozod';
import { postUsernamesValidate } from 'rozod/endpoints/authv2';
const data = await fetchApi(postUsernamesValidate, {
body: { /* ... */ }
});
Field Type Description
username string
birthday string
context `0 1
Field Type Description
code `“ValidUsername” “AlreadyInUseError”
message string
Status Description
400 1: A valid username is required.
2: A valid birthday or authenticated user is required.
403 0: Token Validation Failed