{
  "opencollection": "1.0.0",
  "info": {
    "name": "Logto API references Account center Audit logs API",
    "version": "Cloud"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "/oidc/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Audit logs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://[tenant_id].logto.app/api/logs",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "query",
                "description": "Filter logs by user ID."
              },
              {
                "name": "applicationId",
                "value": "",
                "type": "query",
                "description": "Filter logs by application ID."
              },
              {
                "name": "logKey",
                "value": "",
                "type": "query",
                "description": "Filter logs by log key."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number (starts from 1)."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Entries per page."
              }
            ]
          },
          "docs": "Get logs that match the given query with pagination."
        },
        {
          "info": {
            "name": "Get log",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://[tenant_id].logto.app/api/logs/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the log."
              }
            ]
          },
          "docs": "Get log details by ID."
        }
      ]
    }
  ],
  "bundled": true
}