Skip to content

Two Step Verification v1

Reference for the Two Step Verification v1 endpoints on Roblox.

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

MethodPathName
GET/v1/metadatagetMetadata
POST/v1/users/:userId/challenges/authenticator/verifypostUsersUseridChallengesAuthenticatorVerify
POST/v1/users/:userId/challenges/cross-device/retractpostUsersUseridChallengesCrossDeviceRetract
POST/v1/users/:userId/challenges/cross-device/retrypostUsersUseridChallengesCrossDeviceRetry
POST/v1/users/:userId/challenges/cross-device/verifypostUsersUseridChallengesCrossDeviceVerify
POST/v1/users/:userId/challenges/email/send-codepostUsersUseridChallengesEmailSendCode
POST/v1/users/:userId/challenges/email/verifypostUsersUseridChallengesEmailVerify
POST/v1/users/:userId/challenges/passkey/verify-finishpostUsersUseridChallengesPasskeyVerifyFinish
POST/v1/users/:userId/challenges/passkey/verify-startpostUsersUseridChallengesPasskeyVerifyStart
POST/v1/users/:userId/challenges/password/verifypostUsersUseridChallengesPasswordVerify
POST/v1/users/:userId/challenges/recovery-codes/verifypostUsersUseridChallengesRecoveryCodesVerify
POST/v1/users/:userId/challenges/security-key/verify-finishpostUsersUseridChallengesSecurityKeyVerifyFinish
POST/v1/users/:userId/challenges/security-key/verify-startpostUsersUseridChallengesSecurityKeyVerifyStart
POST/v1/users/:userId/challenges/sms/send-codepostUsersUseridChallengesSmsSendCode
POST/v1/users/:userId/challenges/sms/verifypostUsersUseridChallengesSmsVerify
GET/v1/users/:userId/configurationgetUsersUseridConfiguration
POST/v1/users/:userId/configuration/authenticator/disablepostUsersUseridConfigurationAuthenticatorDisable
POST/v1/users/:userId/configuration/authenticator/enablepostUsersUseridConfigurationAuthenticatorEnable
POST/v1/users/:userId/configuration/authenticator/enable-verifypostUsersUseridConfigurationAuthenticatorEnableVerify
POST/v1/users/:userId/configuration/email/disablepostUsersUseridConfigurationEmailDisable
POST/v1/users/:userId/configuration/email/enablepostUsersUseridConfigurationEmailEnable
POST/v1/users/:userId/configuration/security-key/disablepostUsersUseridConfigurationSecurityKeyDisable
POST/v1/users/:userId/configuration/security-key/enablepostUsersUseridConfigurationSecurityKeyEnable
POST/v1/users/:userId/configuration/security-key/enable-verifypostUsersUseridConfigurationSecurityKeyEnableVerify
POST/v1/users/:userId/configuration/security-key/listpostUsersUseridConfigurationSecurityKeyList
POST/v1/users/:userId/configuration/sms/disablepostUsersUseridConfigurationSmsDisable
POST/v1/users/:userId/configuration/sms/enablepostUsersUseridConfigurationSmsEnable
GET/v1/users/:userId/recovery-codesgetUsersUseridRecoveryCodes
POST/v1/users/:userId/recovery-codes/clearpostUsersUseridRecoveryCodesClear
POST/v1/users/:userId/recovery-codes/regeneratepostUsersUseridRecoveryCodesRegenerate

GET /v1/metadata

Gets two step verification system metadata.

Usage
import { fetchApi } from 'rozod';
import { getMetadata } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(getMetadata, {
userId: /* integer? */,
challengeId: /* string? */
});
NameTypeRequiredDescription
userIdinteger?NoThe user ID.
challengeIdstring?NoThe active two step verification challenge ID if there is one.
FieldTypeDescription
twoStepVerificationEnabledboolean
authenticatorQrCodeSizestring
emailCodeLengthnumber
authenticatorCodeLengthnumber
authenticatorHelpSiteAddressstring
isPasswordRequiredForEnablingAuthenticatorboolean
isPasswordRequiredForEnablingEmailTwoStepVerificationboolean
isUsingTwoStepWebviewComponentboolean
isTwoStepEnabledRequiredForEmailPasswordRequirementboolean
isTwoStepEnabledRequiredForAuthenticatorPasswordRequirementboolean
isSingleMethodEnforcementEnabledboolean
isSmsTwoStepVerificationAvailableboolean
isSecurityKeyTwoStepVerificationAvailableboolean
isAuthenticatorWithVerifiedPhoneEnabledboolean
isPasswordRequiredForEnablingSecurityKeyboolean
isPasswordRequiredForEnablingSms2SVboolean
isPasswordRequiredForChangingRecoveryCodesboolean
isPasswordRequiredForDisablingAuthenticatorboolean
isPasswordRequiredForDisablingEmailTwoStepVerificationboolean
isPasswordRequiredForDisablingSms2SVboolean
isRecoveryCodeGenerationForAuthenticatorSetupEnabledboolean
isSecurityKeyOnAllPlatformsEnabledboolean
receiveWarningsOnDisableTwoStepboolean
isAndroidSecurityKeyEnabledboolean
isSettingsTabRedesignEnabledboolean
twoStepCopyTextEnrollmentStatusnumber
isEppUIEnabledboolean
isEppRecoveryCodesEnabledboolean
maskedUserEmailstring
isUserU13boolean
isDelayedUiEnabledboolean
is2svRecoveryEnabledboolean

postUsersUseridChallengesAuthenticatorVerify

Section titled “postUsersUseridChallengesAuthenticatorVerify”

POST /v1/users/:userId/challenges/authenticator/verify

Verifies a two step verification challenge code via authenticator app.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesAuthenticatorVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesAuthenticatorVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
codestring
FieldTypeDescription
verificationTokenstring
StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
10: The two step verification challenge code is invalid.
4030: Token Validation Failed
4295: Too many requests.
5037: Two step verification is currently under maintenance.

postUsersUseridChallengesCrossDeviceRetract

Section titled “postUsersUseridChallengesCrossDeviceRetract”

POST /v1/users/:userId/challenges/cross-device/retract

Reverts a user’s dialog state from ACTIVE to PENDING.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesCrossDeviceRetract } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesCrossDeviceRetract, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"

Type: unknown

StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
4030: Token Validation Failed
19: Challenge denied.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/challenges/cross-device/retry

Retry a Cross Device two step verification approval.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesCrossDeviceRetry } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesCrossDeviceRetry, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"

Type: unknown

StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
4030: Token Validation Failed
19: Challenge denied.
5037: Two step verification is currently under maintenance.

postUsersUseridChallengesCrossDeviceVerify

Section titled “postUsersUseridChallengesCrossDeviceVerify”

POST /v1/users/:userId/challenges/cross-device/verify

Verifies a two step verification approval via Cross Device. Cross Device approval does not use a verification code.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesCrossDeviceVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesCrossDeviceVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
FieldTypeDescription
verificationTokenstring
StatusDescription
4000: An unknown error occurred with the request.
1: Invalid challenge ID.
2: The user ID is invalid.
4030: Token Validation Failed
19: Challenge denied.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/challenges/email/send-code

Sends a two step verification challenge code via email.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesEmailSendCode } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesEmailSendCode, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"

Type: unknown

StatusDescription
4001: Invalid challenge ID.
4030: Token Validation Failed
2: The user ID is invalid.
4295: Too many requests.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/challenges/email/verify

Verifies a two step verification challenge with a code sent via email.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesEmailVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesEmailVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
codestring
FieldTypeDescription
verificationTokenstring
StatusDescription
4001: Invalid challenge ID.
10: The two step verification challenge code is invalid.
4030: Token Validation Failed
2: The user ID is invalid.
4295: Too many requests.
5037: Two step verification is currently under maintenance.

postUsersUseridChallengesPasskeyVerifyFinish

Section titled “postUsersUseridChallengesPasskeyVerifyFinish”

POST /v1/users/:userId/challenges/passkey/verify-finish

Validates the assertion data returned by the passkey.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesPasskeyVerifyFinish } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesPasskeyVerifyFinish, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
codestring
FieldTypeDescription
verificationTokenstring
StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
10: The two step verification challenge code is invalid.
4030: Token Validation Failed
5037: Two step verification is currently under maintenance.

postUsersUseridChallengesPasskeyVerifyStart

Section titled “postUsersUseridChallengesPasskeyVerifyStart”

POST /v1/users/:userId/challenges/passkey/verify-start

Provides a challenge for the passkey to authenticate.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesPasskeyVerifyStart } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesPasskeyVerifyStart, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
FieldTypeDescription
authenticationOptionsstring
sessionIdstring
StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
4030: Token Validation Failed
8: The user is not allowed to perform the requested action.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/challenges/password/verify

Verifies a two step verification challenge with a password (code).

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesPasswordVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesPasswordVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
codestring
FieldTypeDescription
verificationTokenstring
StatusDescription
4001: Invalid challenge ID.
4: The password is invalid.
4030: Token Validation Failed
2: The user ID is invalid.
4295: Too many requests.
5037: Two step verification is currently under maintenance.

postUsersUseridChallengesRecoveryCodesVerify

Section titled “postUsersUseridChallengesRecoveryCodesVerify”

POST /v1/users/:userId/challenges/recovery-codes/verify

Verifies a two step verification challenge via a recovery code.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesRecoveryCodesVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesRecoveryCodesVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
codestring
FieldTypeDescription
verificationTokenstring
StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
10: The two step verification challenge code is invalid.
4030: Token Validation Failed
4295: Too many requests.
5037: Two step verification is currently under maintenance.

postUsersUseridChallengesSecurityKeyVerifyFinish

Section titled “postUsersUseridChallengesSecurityKeyVerifyFinish”

POST /v1/users/:userId/challenges/security-key/verify-finish

Validates the assertion data returned by the security key.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesSecurityKeyVerifyFinish } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesSecurityKeyVerifyFinish, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
codestring
FieldTypeDescription
verificationTokenstring
StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
10: The two step verification challenge code is invalid.
4030: Token Validation Failed
5037: Two step verification is currently under maintenance.

postUsersUseridChallengesSecurityKeyVerifyStart

Section titled “postUsersUseridChallengesSecurityKeyVerifyStart”

POST /v1/users/:userId/challenges/security-key/verify-start

Provides a challenge for the security key to authenticate.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesSecurityKeyVerifyStart } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesSecurityKeyVerifyStart, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
FieldTypeDescription
authenticationOptionsstring
sessionIdstring
StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
4030: Token Validation Failed
8: The user is not allowed to perform the requested action.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/challenges/sms/send-code

Sends a two step verification code via SMS for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesSmsSendCode } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesSmsSendCode, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"

Type: unknown

StatusDescription
4001: Invalid challenge ID.
4030: Token Validation Failed
2: The user ID is invalid.
4295: Too many requests.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/challenges/sms/verify

Verifies a two step verification challenge with a code sent via SMS.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridChallengesSmsVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridChallengesSmsVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
challengeIdstring
actionType`“Unknown""Login"
codestring
FieldTypeDescription
verificationTokenstring
StatusDescription
4001: Invalid challenge ID.
2: The user ID is invalid.
10: The two step verification challenge code is invalid.
4030: Token Validation Failed
4295: Too many requests.
5037: Two step verification is currently under maintenance.

GET /v1/users/:userId/configuration

Gets two step verification configuration for the specified user.

Usage
import { fetchApi } from 'rozod';
import { getUsersUseridConfiguration } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(getUsersUseridConfiguration, {
userId: /* integer */,
challengeId: /* string? */
});
NameTypeRequiredDescription
userIdintegerYesThe Id of the user to get the configuration for.
challengeIdstring?NoThe active challenge for the user (as an alternative when the user is unauthenticated).
FieldTypeDescription
primaryMediaType`01
methodsobject[]See below

methods[] item fields:

FieldTypeDescription
mediaType`“Email""SMS"
enabledboolean
updatedstring
StatusDescription
4001: Invalid challenge ID.
4032: The user ID is invalid.

postUsersUseridConfigurationAuthenticatorDisable

Section titled “postUsersUseridConfigurationAuthenticatorDisable”

POST /v1/users/:userId/configuration/authenticator/disable

Disables two step verification via authenticator for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationAuthenticatorDisable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationAuthenticatorDisable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring
reauthenticationTokenstring

Type: unknown

StatusDescription
4002: The user ID is invalid.
4: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
8: The user is not allowed to perform the requested action.
4295: Too many requests.
5037: Two step verification is currently under maintenance.

postUsersUseridConfigurationAuthenticatorEnable

Section titled “postUsersUseridConfigurationAuthenticatorEnable”

POST /v1/users/:userId/configuration/authenticator/enable

Initiates enabling authenticator-based two step verification for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationAuthenticatorEnable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationAuthenticatorEnable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring
secureAuthenticationIntentobjectSee below

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring
FieldTypeDescription
setupTokenstring
qrCodeImageUrlstring
manualEntryKeystring
StatusDescription
4002: The user ID is invalid.
3: The email is invalid.
4: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
11: The two step verification configuration is already enabled.
5037: Two step verification is currently under maintenance.

postUsersUseridConfigurationAuthenticatorEnableVerify

Section titled “postUsersUseridConfigurationAuthenticatorEnableVerify”

POST /v1/users/:userId/configuration/authenticator/enable-verify

Finishes enabling authenticator-based two step verification for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationAuthenticatorEnableVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationAuthenticatorEnableVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
setupTokenstring
codestring
passwordstring
secureAuthenticationIntentobjectSee below

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring
FieldTypeDescription
recoveryCodesstring[]
StatusDescription
4002: The user ID is invalid.
4: The password is invalid.
10: The two step verification challenge code is invalid.
12: Invalid setup token.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
11: The two step verification configuration is already enabled.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/configuration/email/disable

Disables two step verification via email for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationEmailDisable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationEmailDisable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring
reauthenticationTokenstring

Type: unknown

StatusDescription
4004: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
2: The user ID is invalid.
8: The user is not allowed to perform the requested action.
4295: Too many requests.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/configuration/email/enable

Enables two step verification via email for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationEmailEnable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationEmailEnable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring
secureAuthenticationIntentobjectSee below

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

Type: unknown

StatusDescription
4003: The email is invalid.
4: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
2: The user ID is invalid.
5037: Two step verification is currently under maintenance.

postUsersUseridConfigurationSecurityKeyDisable

Section titled “postUsersUseridConfigurationSecurityKeyDisable”

POST /v1/users/:userId/configuration/security-key/disable

Disables a batch of credentials for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationSecurityKeyDisable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationSecurityKeyDisable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
credentialNicknamesstring[]

Type: unknown

StatusDescription
4004: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
8: The user is not allowed to perform the requested action.
5037: Two step verification is currently under maintenance.

postUsersUseridConfigurationSecurityKeyEnable

Section titled “postUsersUseridConfigurationSecurityKeyEnable”

POST /v1/users/:userId/configuration/security-key/enable

Initiates security key registration by providing credential creation options.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationSecurityKeyEnable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationSecurityKeyEnable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring
secureAuthenticationIntentobjectSee below

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring
FieldTypeDescription
creationOptionsstring
sessionIdstring
StatusDescription
4002: The user ID is invalid.
4: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
9: The two step verification configuration is invalid for this action.
16: Reached limit of security keys registered.
5037: Two step verification is currently under maintenance.

postUsersUseridConfigurationSecurityKeyEnableVerify

Section titled “postUsersUseridConfigurationSecurityKeyEnableVerify”

POST /v1/users/:userId/configuration/security-key/enable-verify

Finishes security key registration and stores credential. Enables security key as a 2sv media type if it is a user’s first key.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationSecurityKeyEnableVerify } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationSecurityKeyEnableVerify, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
sessionIdstring
credentialNicknamestring
attestationResponsestring

Type: unknown

StatusDescription
4002: The user ID is invalid.
17: Invalid security key nickname.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
17: Invalid security key nickname.
5037: Two step verification is currently under maintenance.

postUsersUseridConfigurationSecurityKeyList

Section titled “postUsersUseridConfigurationSecurityKeyList”

POST /v1/users/:userId/configuration/security-key/list

List a user’s registered security keys.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationSecurityKeyList } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationSecurityKeyList, {
userId: /* integer */
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
credentialsobject[]See below

credentials[] item fields:

FieldTypeDescription
nicknamestring
StatusDescription
4002: The user ID is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/configuration/sms/disable

Disables two step verification via SMS for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationSmsDisable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationSmsDisable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring
reauthenticationTokenstring

Type: unknown

StatusDescription
4004: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
2: The user ID is invalid.
8: The user is not allowed to perform the requested action.
4295: Too many requests.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/configuration/sms/enable

Enables two step verification via SMS for the specified user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridConfigurationSmsEnable } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridConfigurationSmsEnable, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring
secureAuthenticationIntentobjectSee below

secureAuthenticationIntent fields:

FieldTypeDescription
clientPublicKeystring
clientEpochTimestampnumber
saiSignaturestring
serverNoncestring

Type: unknown

StatusDescription
4004: The password is invalid.
15: The phone number is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
2: The user ID is invalid.
5037: Two step verification is currently under maintenance.
8: The user is not allowed to perform the requested action.

GET /v1/users/:userId/recovery-codes

Gets the current status of recovery codes for a user.

Usage
import { fetchApi } from 'rozod';
import { getUsersUseridRecoveryCodes } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(getUsersUseridRecoveryCodes, {
userId: /* integer */
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
activeCountnumber
createdstring
StatusDescription
4002: The user ID is invalid.
4010: Authorization has been denied for this request.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/recovery-codes/clear

Clears any existing recovery codes for the user.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridRecoveryCodesClear } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridRecoveryCodesClear, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID.
FieldTypeDescription
passwordstring

Type: unknown

StatusDescription
4002: The user ID is invalid.
4: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
4295: Too many requests.
5037: Two step verification is currently under maintenance.

POST /v1/users/:userId/recovery-codes/regenerate

Clears any existing recovery codes and generates a new batch of recovery codes.

Usage
import { fetchApi } from 'rozod';
import { postUsersUseridRecoveryCodesRegenerate } from 'rozod/lib/endpoints/twostepverificationv1';
const data = await fetchApi(postUsersUseridRecoveryCodesRegenerate, {
userId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userIdintegerYesThe user ID to generate recovery codes for.
FieldTypeDescription
passwordstring
FieldTypeDescription
recoveryCodesstring[]
StatusDescription
4002: The user ID is invalid.
4: The password is invalid.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
4295: Too many requests.
5037: Two step verification is currently under maintenance.