Get user's MFA verifications

GET /api/users/{userId}/mfa-verifications

Get a user's existing MFA verifications for a given user ID.

Path parameters

  • userId string Required

    The unique identifier of the user.

Responses

  • 200 application/json

    An array of MFA verifications for the user.

    Hide response attributes Show response attributes object
    • id string Required
    • createdAt string Required
    • type string Required

      Values are Totp, WebAuthn, or BackupCode.

    • agent string
    • remainCodes number
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

GET /api/users/{userId}/mfa-verifications
curl \
 --request GET 'https://[tenant_id].logto.app/api/users/{userId}/mfa-verifications' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": "string",
    "createdAt": "string",
    "type": "Totp",
    "agent": "string",
    "remainCodes": 42.0
  }
]