Get backup codes

GET /api/my-account/mfa-verifications/backup-codes

Get all backup codes for the user with their usage status. Requires identity verification.

Responses

  • 200 application/json

    The backup codes were retrieved successfully.

  • 401

    Unauthorized or identity verification required.

  • 403

    Forbidden

  • 404

    No backup codes found for the user.

GET /api/my-account/mfa-verifications/backup-codes
curl \
 --request GET 'https://[tenant_id].logto.app/api/my-account/mfa-verifications/backup-codes' \
 --header "Authorization: Bearer $ACCESS_TOKEN"