Get OIDC session config

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/configs/oidc/session

Get the OIDC session configuration for the tenant.

Responses

  • 200 application/json

    The OIDC session configuration. Returns empty object if the configuration does not exist.

    Hide response attribute Show response attribute object
    • ttl number Required
  • 401

    Unauthorized

  • 403

    Forbidden

GET /api/configs/oidc/session
curl \
 --request GET 'https://[tenant_id].logto.app/api/configs/oidc/session' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "ttl": 42.0
}