Generate 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
POST /api/my-account/mfa-verifications/backup-codes/generate

Generate backup codes for the user.

Responses

  • 200 application/json

    The backup codes were generated successfully.

  • 401

    Unauthorized

  • 403

    Forbidden

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