Get MFA factors information
Returns information about the auth factors of the current user and refreshes the related session claim
PUT
/{apiBasePath}/mfa/infoAuthorization
AuthorizationBearer token · headerrequiredReturned as the "st-access-token" header from sign-in and refresh endpoints and present on requests that update the access token payload
or
sAccessTokenAPI key · cookierequiredThis is an HTTPOnly cookie, set by sign-in and refresh endpoints and present on requests that update the access token
Path parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
Header parameters
ridstringThe multi factor auth recipe ID
anti-csrftokenThis will only be here if enabled by the user.
Responses
200Information about the auth factors of the current user and optionally the session with a refreshed MFA claim
One of:
object
statusstatusOKSuccess status indicator
Allowed:
OKfactorsobjectShow propertiesHide properties
alreadySetupstring[]allowedToSetupstring[]nextstring[]emailsobjectShow propertiesHide properties
emailpasswordstring[]otp-emailstring[]link-emailstring[]phoneNumbersobjectShow propertiesHide properties
otp-phonestring[]link-phonestring[]generalErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Authorization
Parameters
Request
curl -X PUT "/auth/mfa/info" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/auth/mfa/info", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.put(
"/auth/mfa/info",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"status": "OK",
"factors": {
"alreadySetup": [
"string"
],
"allowedToSetup": [
"string"
],
"next": [
"string"
]
},
"emails": {
"emailpassword": [
"string"
],
"otp-email": [
"string"
],
"link-email": [
"string"
]
},
"phoneNumbers": {
"otp-phone": [
"string"
],
"link-phone": [
"string"
]
}
}"Not Found""Internal Error"