Update MFA settings

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
PATCH /api/my-account/mfa-settings

Update MFA settings for the user. This endpoint requires identity verification and the Identities scope. Controls whether MFA verification is required during sign-in when the user has MFA configured.

application/json

Body Required

  • skipMfaOnSignIn boolean Required

Responses

  • 200 application/json

    The MFA settings were updated successfully.

    Hide response attribute Show response attribute object
    • skipMfaOnSignIn boolean Required
  • 400

    The request body is invalid.

  • 401

    Permission denied, identity verification is required or insufficient scope.

  • 403

    Forbidden

PATCH /api/my-account/mfa-settings
curl \
 --request PATCH 'https://[tenant_id].logto.app/api/my-account/mfa-settings' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"skipMfaOnSignIn":true}'
Request examples
{
  "skipMfaOnSignIn": true
}
Response examples (200)
{
  "skipMfaOnSignIn": true
}