Get the direct sign-in target of the current 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
GET /api/experience/interaction/direct-sign-in

Return the direct_sign_in value carried by the current interaction's authorization request, or an empty object when the interaction did not start from direct sign-in. The value is read from the interaction's OIDC parameters, so it is scoped to this interaction and remains available even before the experience interaction is initialized. Used by the hosted experience to return a failed direct sign-in to the client application instead of falling back to the hosted sign-in page.

Responses

  • 200 application/json

    The direct sign-in target has been retrieved, if any.

    Hide response attribute Show response attribute object
    • directSignIn string
GET /api/experience/interaction/direct-sign-in
curl \
 --request GET 'https://[tenant_id].logto.app/api/experience/interaction/direct-sign-in'
Response examples (200)
{
  "directSignIn": "string"
}