<aside> 📎 Endpoints

</aside>

Get server audit logs

GET https://your-panel.com/api/client/servers/<UUID>/audit-logs

Example Request

curl "<https://your-panel.com/api/client/servers/><UUID>/audit-logs" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/vnd.wisp.v1+json" \\
  -H "Authorization: Bearer APITOKEN" \\
  -X GET

Example Response

{
  "object": "list",
  "data": [
      {
          "object": "audit_log",
          "attributes": {
              "action": "server:schedule",
              "subaction": "create",
              "device": {
                  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
              },
              "metadata": {
                  "name": "test",
                  "cron_hour": "*",
                  "is_active": false,
                  "cron_minute": "*/30",
                  "cron_day_of_week": "*",
                  "cron_day_of_month": "*"
              },
              "created_at": "2022-02-01T12:22:41.000000Z"
          }
      },
      {
          "object": "audit_log",
          "attributes": {
              "action": "server",
              "subaction": "update",
              "device": {
                  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
              },
              "metadata": {
                  "changes": []
              },
              "created_at": "2022-01-28T21:42:50.000000Z"
          }
      },
  ],
  "meta": {
      "pagination": {
          "total": 56,
          "count": 20,
          "per_page": 20,
          "current_page": 1,
          "total_pages": 3,
          "links": {
              "next": "/?page=2"
          }
      }
  }
}