Get backup codes

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Logto API references MCP server": {
  "url": "https://openapi.logto.io/mcp"
}
Close
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"