Get active user data

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/dashboard/users/active

Get active user data, including daily active user (DAU), weekly active user (WAU) and monthly active user (MAU). It also includes an array of DAU in the past 30 days.

Query parameters

  • date string(regex)

    The date to get active user data.

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

Responses

  • 200 application/json

    Active user data object.

    Hide response attributes Show response attributes object
    • dauCurve array[object] Required
      Hide dauCurve attributes Show dauCurve attributes object
      • date string Required
      • count number Required
    • dau object Required
      Hide dau attributes Show dau attributes object
      • count number Required
      • delta number Required
    • wau object Required
      Hide wau attributes Show wau attributes object
      • count number Required
      • delta number Required
    • mau object Required
      Hide mau attributes Show mau attributes object
      • count number Required
      • delta number Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

GET /api/dashboard/users/active
curl \
 --request GET 'https://[tenant_id].logto.app/api/dashboard/users/active' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "dauCurve": [
    {
      "date": "string",
      "count": 42.0
    }
  ],
  "dau": {
    "count": 42.0,
    "delta": 42.0
  },
  "wau": {
    "count": 42.0,
    "delta": 42.0
  },
  "mau": {
    "count": 42.0,
    "delta": 42.0
  }
}