Set trusted device opt-in decision

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/experience/profile/trusted-device

Record whether the user trusts the current device after eligible MFA verification or binding. A trusted-device credential is created only after the interaction is successfully submitted.

application/json

Body Required

  • trusted boolean Required

    Whether to trust the current device.

Responses

  • 204

    The trusted-device opt-in decision has been recorded for the current interaction.

  • 400

    The decision payload is invalid, or trusted-device opt-in is not supported for the current interaction event.

  • 403

    An eligible MFA verification or binding is required before accepting the trusted-device opt-in.

  • 404

    The user has not been identified yet.

POST /api/experience/profile/trusted-device
curl \
 --request POST 'https://[tenant_id].logto.app/api/experience/profile/trusted-device' \
 --header "Content-Type: application/json" \
 --data '{"trusted":true}'
Request examples
{
  "trusted": true
}