Init new interaction

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
PUT /api/experience

Init a new experience interaction with the given interaction type. Any existing interaction data will be cleared.

application/json

Body Required

  • interactionEvent string Required

    Values are SignIn, Register, or ForgotPassword.

  • captchaToken string

Responses

  • 204

    A new experience interaction has been successfully initiated.

  • 400

    Bad Request

  • 422

    Unprocessable Content

PUT /api/experience
curl \
 --request PUT 'https://[tenant_id].logto.app/api/experience' \
 --header "Content-Type: application/json" \
 --data '{"interactionEvent":"SignIn","captchaToken":"string"}'
Request examples
{
  "interactionEvent": "SignIn",
  "captchaToken": "string"
}