Skip to content

Auth v2

Reference for the Auth v2 endpoints on Roblox.

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

MethodPathName
GET/v2/auth/metadatagetAuthMetadata
POST/v2/identity-verification/loginpostIdentityVerificationLogin
POST/v2/loginpostLogin
POST/v2/login/linkedpostLoginLinked
POST/v2/logoutpostLogout
POST/v2/logoutfromallsessionsandreauthenticatepostLogoutfromallsessionsandreauthenticate
GET/v2/metadatagetMetadata
GET/v2/passwords/current-statusgetPasswordsCurrentStatus
GET/v2/passwords/resetgetPasswordsReset
POST/v2/passwords/resetpostPasswordsReset
POST/v2/passwords/reset/sendpostPasswordsResetSend
POST/v2/passwords/reset/verifypostPasswordsResetVerify
GET/v2/passwords/validategetPasswordsValidate
POST/v2/passwords/validatepostPasswordsValidate
GET/v2/recovery/metadatagetRecoveryMetadata
GET/v2/revert/accountgetRevertAccount
POST/v2/revert/accountpostRevertAccount
POST/v2/revert/invalidate-ticketspostRevertInvalidateTickets
POST/v2/session/refreshpostSessionRefresh
POST/v2/signuppostSignup
POST/v2/signup/linkedpostSignupLinked
POST/v2/user/passwords/changepostUserPasswordsChange
POST/v2/usernamepostUsername
GET/v2/usernamesgetUsernames
POST/v2/usernames/recoverpostUsernamesRecover
GET/v2/usernames/validategetUsernamesValidate
POST/v2/usernames/validatepostUsernamesValidate

GET /v2/auth/metadata

Gets Auth meta data

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

POST /v2/identity-verification/login

Endpoint for login with identity verification

Usage
import { fetchApi } from 'rozod';
import { postIdentityVerificationLogin } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(postIdentityVerificationLogin, {
body: { /* ... */ }
});
FieldTypeDescription
loginTicketstring
resultTokenstring

Type: unknown

StatusDescription
4030: 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/lib/endpoints/authv2';
const data = await fetchApi(postLogin, {
body: { /* ... */ }
});
FieldTypeDescription
ctype`“Email""Username"
cvaluestring
passwordstring
userIdnumber
securityQuestionSessionIdstring
securityQuestionRedemptionTokenstring
secureAuthenticationIntentobjectSee below
accountBlobstring
accountLinkParametersobjectSee below
captchaIdstring
captchaTokenstring
captchaProviderstring
challengeIdstring

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

accountLinkParameters fields:

FieldTypeDescription
LinkingPlatform`“Invalid""Xbox"
FieldTypeDescription
userobjectSee below
twoStepVerificationDataobjectSee below
identityVerificationLoginTicketstring
isBannedboolean
accountBlobstring
shouldUpdateEmailboolean
recoveryEmailstring
passkeyRegistrationSucceededboolean
shouldAutoLoginFromRecoveryboolean
shouldPrompt2svRemovalboolean
shouldPromptPasskeyAdditionboolean

user fields:

FieldTypeDescription
idnumber
namestring
displayNamestring

twoStepVerificationData fields:

FieldTypeDescription
mediaType`“Email""SMS"
ticketstring
StatusDescription
4000: An unexpected error occurred.
3: Username and Password are required. Please try again.
8: Login with received credential type is not supported.
4030: 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.
4297: Too many attempts. Please wait a bit.
50311: 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/lib/endpoints/authv2';
const data = await fetchApi(postLoginLinked, {
body: { /* ... */ }
});
FieldTypeDescription
ctype`“Email""Username"
cvaluestring
passwordstring
userIdnumber
securityQuestionSessionIdstring
securityQuestionRedemptionTokenstring
secureAuthenticationIntentobjectSee below
accountBlobstring
accountLinkParametersobjectSee below
captchaIdstring
captchaTokenstring
captchaProviderstring
challengeIdstring

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

accountLinkParameters fields:

FieldTypeDescription
LinkingPlatform`“Invalid""Xbox"
FieldTypeDescription
userobjectSee below
twoStepVerificationDataobjectSee below
identityVerificationLoginTicketstring
isBannedboolean
accountBlobstring
shouldUpdateEmailboolean
recoveryEmailstring
passkeyRegistrationSucceededboolean
shouldAutoLoginFromRecoveryboolean
shouldPrompt2svRemovalboolean
shouldPromptPasskeyAdditionboolean

user fields:

FieldTypeDescription
idnumber
namestring
displayNamestring

twoStepVerificationData fields:

FieldTypeDescription
mediaType`“Email""SMS"
ticketstring
StatusDescription
4000: An unexpected error occurred.
3: Username and Password are required. Please try again.
8: Login with received credential type is not supported.
4030: 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.
4297: Too many attempts. Please wait a bit.
50311: Service unavailable. Please try again.

POST /v2/logout

Destroys the current authentication session.

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

Type: unknown

StatusDescription
4010: Authorization has been denied for this request.
4030: 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/lib/endpoints/authv2';
const data = await fetchApi(postLogoutfromallsessionsandreauthenticate, {
body: { /* ... */ }
});
FieldTypeDescription
SecureAuthenticationIntentobjectSee below

SecureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

Type: unknown

StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

GET /v2/metadata

Get the metadata

Usage
import { fetchApi } from 'rozod';
import { getMetadata } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(getMetadata, undefined);
FieldTypeDescription
isUpdateUsernameEnabledboolean
ftuxAvatarAssetMapstring
IsEmailUpsellAtLogoutEnabledboolean
ShouldFetchEmailUpsellIXPValuesAtLogoutboolean
IsAccountRecoveryPromptEnabledboolean
IsContactMethodRequiredAtSignupboolean
IsUserAgreementsSignupIntegrationEnabledboolean
IsPasswordRequiredForUsernameChangeboolean
IsPasskeyFeatureEnabledboolean
IsAltBrowserTrackerboolean
IsLoginRedirectPageEnabledboolean

GET /v2/passwords/current-status

Returns password status for current user, asynchronously.

Usage
import { fetchApi } from 'rozod';
import { getPasswordsCurrentStatus } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(getPasswordsCurrentStatus, undefined);
FieldTypeDescription
validboolean
StatusDescription
4010: 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/lib/endpoints/authv2';
const data = await fetchApi(getPasswordsReset, {
TargetType: /* unknown */,
Ticket: /* string */
});
NameTypeRequiredDescription
TargetTypeunknownYes
TicketstringYes
FieldTypeDescription
usersobject[]See below

users[] item fields:

FieldTypeDescription
userIdnumber
usernamestring
displayNamestring
StatusDescription
4003: Request was empty.
9: The target type is invalid.
11: The password reset ticket is invalid.
14: The nonce is invalid.
40311: The password reset ticket is invalid.
16: The ticket is expired.
5000: Unknown error occured.
5031: 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/lib/endpoints/authv2';
const data = await fetchApi(postPasswordsReset, {
body: { /* ... */ }
});
FieldTypeDescription
targetType`“Email""PhoneNumber"
ticketstring
userIdnumber
passwordstring
passwordRepeatedstring
twoStepVerificationChallengeIdstring
twoStepVerificationTokenstring
accountBlobstring
secureAuthenticationIntentobjectSee below
newEmailstring
passkeySessionIdstring
passkeyRegistrationResponsestring

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring
FieldTypeDescription
userobjectSee below
twoStepVerificationDataobjectSee below
identityVerificationLoginTicketstring
isBannedboolean
accountBlobstring
shouldUpdateEmailboolean
recoveryEmailstring
passkeyRegistrationSucceededboolean
shouldAutoLoginFromRecoveryboolean
shouldPrompt2svRemovalboolean
shouldPromptPasskeyAdditionboolean

user fields:

FieldTypeDescription
idnumber
namestring
displayNamestring

twoStepVerificationData fields:

FieldTypeDescription
mediaType`“Email""SMS"
ticketstring
StatusDescription
4003: 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.
4030: Token Validation Failed
16: The ticket is expired.
17: The nonce is expired.
5000: Unknown error occured.
5031: 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/lib/endpoints/authv2';
const data = await fetchApi(postPasswordsResetSend, {
body: { /* ... */ }
});
FieldTypeDescription
targetType`“Email""PhoneNumber"
targetstring
captchaIdstring
captchaTokenstring
captchaProviderstring
challengeIdstring
FieldTypeDescription
noncestring
transmissionType`“Sms""Email”`
StatusDescription
4003: Request was empty.
9: The target type is invalid.
10: The target is invalid.
12: The user is invalid.
4030: Token Validation Failed
18: Captcha is required.
23: Authenticate with Luobu instead.
4292: Too many attempts. Please try again later.
5000: Unknown error occured.
19: Message could not be sent.
5031: 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/lib/endpoints/authv2';
const data = await fetchApi(postPasswordsResetVerify, {
body: { /* ... */ }
});
FieldTypeDescription
targetType`“Email""PhoneNumber"
noncestring
codestring
FieldTypeDescription
userTicketsobject[]See below

userTickets[] item fields:

FieldTypeDescription
userobjectSee below
ticketstring

user fields:

FieldTypeDescription
userIdnumber
usernamestring
displayNamestring
StatusDescription
4003: Request was empty.
9: The target type is invalid.
14: The nonce is invalid.
4030: Token Validation Failed
13: The code is invalid.
5000: Unknown error occured.
5031: 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/lib/endpoints/authv2';
const data = await fetchApi(getPasswordsValidate, {
Username: /* string */,
Password: /* string */
});
NameTypeRequiredDescription
UsernamestringYes
PasswordstringYes
FieldTypeDescription
code`“ValidPassword""WeakPasswordError"
messagestring
StatusDescription
4001: 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/lib/endpoints/authv2';
const data = await fetchApi(postPasswordsValidate, {
body: { /* ... */ }
});
FieldTypeDescription
usernamestring
passwordstring
FieldTypeDescription
code`“ValidPassword""WeakPasswordError"
messagestring
StatusDescription
4001: Valid Username and Password are required. Please try again.
4030: Token Validation Failed

GET /v2/recovery/metadata

Get metadata for forgot endpoints

Usage
import { fetchApi } from 'rozod';
import { getRecoveryMetadata } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(getRecoveryMetadata, undefined);
FieldTypeDescription
isOnPhoneboolean
codeLengthnumber
isPhoneFeatureEnabledForUsernameboolean
isPhoneFeatureEnabledForPasswordboolean
isBedev2CaptchaEnabledForPasswordResetboolean
isUsernameRecoveryDeprecatedboolean
StatusDescription
5037: 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/lib/endpoints/authv2';
const data = await fetchApi(getRevertAccount, {
ticket: /* string */
});
NameTypeRequiredDescription
ticketstringYesTicket Guid to revert account.
FieldTypeDescription
isTwoStepVerificationEnabledboolean
isEmailVerifiedboolean
isEmailChangedboolean
isPhoneVerifiedboolean
userIdnumber
usernamestring
ticketstring
StatusDescription
4002: The account revert ticket is not valid
40313: Revert links are disabled for users in the Enhanced Protection Program.
5031: This feature is disabled

POST /v2/revert/account

Submit Revert Account Request

Usage
import { fetchApi } from 'rozod';
import { postRevertAccount } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(postRevertAccount, {
body: { /* ... */ }
});
FieldTypeDescription
UserIdnumber
NewPasswordstring
NewPasswordRepeatedstring
Ticketstring
TwoStepVerificationChallengeIdstring
TwoStepVerificationTokenstring
FieldTypeDescription
userobjectSee below
twoStepVerificationDataobjectSee below
identityVerificationLoginTicketstring
isBannedboolean
accountBlobstring
shouldUpdateEmailboolean
recoveryEmailstring
passkeyRegistrationSucceededboolean
shouldAutoLoginFromRecoveryboolean
shouldPrompt2svRemovalboolean
shouldPromptPasskeyAdditionboolean

user fields:

FieldTypeDescription
idnumber
namestring
displayNamestring

twoStepVerificationData fields:

FieldTypeDescription
mediaType`“Email""SMS"
ticketstring
StatusDescription
4002: 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.
4030: Token Validation Failed
5030: 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/lib/endpoints/authv2';
const data = await fetchApi(postRevertInvalidateTickets, undefined);

Type: unknown

StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed
5031: 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/lib/endpoints/authv2';
const data = await fetchApi(postSessionRefresh, undefined);

Type: unknown

StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

POST /v2/signup

Endpoint for signing up a new user

Usage
import { fetchApi } from 'rozod';
import { postSignup } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(postSignup, {
body: { /* ... */ }
});
FieldTypeDescription
usernamestring
passwordstring
gender`“Unknown""Male"
birthdaystring
displayNamestring
isTosAgreementBoxCheckedboolean
emailstring
localestring
assetIdsnumber[]
bodyColorIdnumber
bodyTypeScalenumber
headScalenumber
heightScalenumber
widthScalenumber
proportionScalenumber
referralDataobjectSee below
agreementIdsstring[]
identityVerificationResultTokenstring
secureAuthenticationIntentobjectSee below
otpSessionobjectSee below
dataTokenstring
accountBlobstring
passkeySessionIdstring
passkeyRegistrationResponsestring
accountLinkParametersobjectSee below
auditSystemContentobjectSee below
captchaIdstring
captchaTokenstring
captchaProviderstring
challengeIdstring

referralData fields:

FieldTypeDescription
acquisitionTimestring
acquisitionReferrerstring
mediumstring
sourcestring
campaignstring
adGroupstring
keywordstring
matchTypestring
sendInfoboolean
requestSessionIdstring
offerIdstring

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

otpSession fields:

FieldTypeDescription
otpSessionTokenstring
otpContactType`“Unset""Email"

accountLinkParameters fields:

FieldTypeDescription
LinkingPlatform`“Invalid""Xbox"

auditSystemContent fields:

FieldTypeDescription
capturedAuditContentobjectSee below
additionalAuditContentstring

capturedAuditContent fields:

FieldTypeDescription
translationKeystring
translationNamespacestring
translatedSourceStringstring
parametersstring
FieldTypeDescription
userIdnumber
starterPlaceIdnumber
returnUrlstring
accountBlobstring
StatusDescription
400Bad request
16: User agreement ids are null.
21: Empty account switch blob required
4030: 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.
4293: Too many attempts. Please wait a bit.
500Internal server error
15: Insert acceptances failed.
27: Pre-auth passkey registration failed
503Service unavailable

POST /v2/signup/linked

Endpoint for signing up a new user, specifically for linked

Usage
import { fetchApi } from 'rozod';
import { postSignupLinked } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(postSignupLinked, {
body: { /* ... */ }
});
FieldTypeDescription
usernamestring
passwordstring
gender`“Unknown""Male"
birthdaystring
displayNamestring
isTosAgreementBoxCheckedboolean
emailstring
localestring
assetIdsnumber[]
bodyColorIdnumber
bodyTypeScalenumber
headScalenumber
heightScalenumber
widthScalenumber
proportionScalenumber
referralDataobjectSee below
agreementIdsstring[]
identityVerificationResultTokenstring
secureAuthenticationIntentobjectSee below
otpSessionobjectSee below
dataTokenstring
accountBlobstring
passkeySessionIdstring
passkeyRegistrationResponsestring
accountLinkParametersobjectSee below
auditSystemContentobjectSee below
captchaIdstring
captchaTokenstring
captchaProviderstring
challengeIdstring

referralData fields:

FieldTypeDescription
acquisitionTimestring
acquisitionReferrerstring
mediumstring
sourcestring
campaignstring
adGroupstring
keywordstring
matchTypestring
sendInfoboolean
requestSessionIdstring
offerIdstring

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

otpSession fields:

FieldTypeDescription
otpSessionTokenstring
otpContactType`“Unset""Email"

accountLinkParameters fields:

FieldTypeDescription
LinkingPlatform`“Invalid""Xbox"

auditSystemContent fields:

FieldTypeDescription
capturedAuditContentobjectSee below
additionalAuditContentstring

capturedAuditContent fields:

FieldTypeDescription
translationKeystring
translationNamespacestring
translatedSourceStringstring
parametersstring
FieldTypeDescription
userIdnumber
starterPlaceIdnumber
returnUrlstring
accountBlobstring
StatusDescription
400Bad request
16: User agreement ids are null.
21: Empty account switch blob required
4030: 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.
4293: Too many attempts. Please wait a bit.
500Internal server error
15: Insert acceptances failed.
27: Pre-auth passkey registration failed

POST /v2/user/passwords/change

Changes the password for the authenticated user.

Usage
import { fetchApi } from 'rozod';
import { postUserPasswordsChange } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(postUserPasswordsChange, {
body: { /* ... */ }
});
FieldTypeDescription
currentPasswordstring
newPasswordstring
secureAuthenticationIntentobjectSee below

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

Type: unknown

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

POST /v2/username

Change the user’s username

Usage
import { fetchApi } from 'rozod';
import { postUsername } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(postUsername, {
body: { /* ... */ }
});
FieldTypeDescription
usernamestring
passwordstring

Type: unknown

StatusDescription
4005: 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
4010: Authorization has been denied for this request.
4030: Token Validation Failed
1: PIN is locked.
2: A verified email is missing
3: Your password is incorrect.
100: Unknown birthday
5000: An unknown error occured.
5: You don’t have enough Robux to change your username.
5034: The feature is currently not available. Please try again later.

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/lib/endpoints/authv2';
const data = await fetchApi(getUsernames, {
username: /* string? */
});
NameTypeRequiredDescription
usernamestring?NoThe username
FieldTypeDescription
usernamesstring[]

POST /v2/usernames/recover

Sends an email of all accounts belonging to an email

Usage
import { fetchApi } from 'rozod';
import { postUsernamesRecover } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(postUsernamesRecover, {
body: { /* ... */ }
});
FieldTypeDescription
targetType`“Email""PhoneNumber"
targetstring
FieldTypeDescription
transmissionType`01`
StatusDescription
40020: Invalid Email
21: Invalid Phone
23: No Account Found
4030: Token Validation Failed
11: Too many attempts. Please wait a bit.
5000: An unexpected error occurred.

GET /v2/usernames/validate

Checks if a username is valid.

Usage
import { fetchApi } from 'rozod';
import { getUsernamesValidate } from 'rozod/lib/endpoints/authv2';
const data = await fetchApi(getUsernamesValidate, {
Username: /* string */,
Birthday: /* string */
});
NameTypeRequiredDescription
UsernamestringYes
BirthdaystringYes
FieldTypeDescription
code`“ValidUsername""AlreadyInUseError"
messagestring
StatusDescription
4001: 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/lib/endpoints/authv2';
const data = await fetchApi(postUsernamesValidate, {
body: { /* ... */ }
});
FieldTypeDescription
usernamestring
birthdaystring
context`01
FieldTypeDescription
code`“ValidUsername""AlreadyInUseError"
messagestring
StatusDescription
4001: A valid username is required.
2: A valid birthday or authenticated user is required.
4030: Token Validation Failed