Get the license usage statement.

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/systems/license/usage-statement

Get the monthly active users and access tokens of this self-hosted deployment for each of the last 12 full UTC calendar months, oldest first, across all tenants except the admin tenant. It is read from the deployment's own records and can be provided as the usage statement the self-hosted terms ask for. Returns 404 when no license is installed, and 501 on Logto Cloud.

Responses

  • 200 application/json

    The usage statement of this deployment.

    Hide response attribute Show response attribute object
    • months array[object] Required
      Hide months attributes Show months attributes object
      • month string(regex) Required

        Format should match the following pattern: /^\d{4}-\d{2}$/.

      • mau number Required
      • monthlyAccessTokens number Required
  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    No license is installed on this deployment.

  • 501

    Licenses are only available on self-hosted deployments.

GET /api/systems/license/usage-statement
curl \
 --request GET 'https://[tenant_id].logto.app/api/systems/license/usage-statement' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "months": [
    {
      "month": "string",
      "mau": 42.0,
      "monthlyAccessTokens": 42.0
    }
  ]
}