{
  "opencollection": "1.0.0",
  "info": {
    "name": "Logto API references Account center Dashboard API",
    "version": "Cloud"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "/oidc/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Dashboard",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get total user count",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://[tenant_id].logto.app/api/dashboard/users/total"
          },
          "docs": "Get total user count in the current tenant."
        },
        {
          "info": {
            "name": "Get new user count",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://[tenant_id].logto.app/api/dashboard/users/new"
          },
          "docs": "Get new user count in the past 7 days."
        },
        {
          "info": {
            "name": "Get active user data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://[tenant_id].logto.app/api/dashboard/users/active",
            "params": [
              {
                "name": "date",
                "value": "",
                "type": "query",
                "description": "The date to get active user data."
              }
            ]
          },
          "docs": "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."
        }
      ]
    }
  ],
  "bundled": true
}