Xsolla-logo

Get user's two-factor authentication settingsServer-side

get/projects/{project_id}/users/{user_id}/mfa

Gets user's two-factor authentication settings.

SecurityServer
Request
path Parameters
user_id
required
string <uuid>

User ID. You can find it in Publisher Account > your Login project > Users.

project_id
required
string <uuid>

Login project ID from Publisher Account.

Responses
200

OK

401

Unauthorized

403

Forbidden

404

Not Found

422

Unprocessable Entity

Request samples
curl --request GET \
  --url https://login.xsolla.com/api/projects/{project_id}/users/{user_id}/mfa \
  --header 'X-SERVER-AUTHORIZATION: YOUR_SERVER_TOKEN'
Response samples
application/json
{
  • "change_restricted": true,
  • "mfa_enabled": true,
  • "mfa_type": "email"
}