Contents
On this page

List Views - Plugixa Activity Log

GET /plugixa-activity-log/v1/views

The saved views you can see: your own, and the ones shared with every reader. A view is a name plus a set of log filters.

Needs the view access level (who can call what).

Request

GET https://your-site.example/wp-json/plugixa-activity-log/v1/views

Responses

200 OK. data is every view you can see.

Your own views come first, then the shared ones, each part by name. At most 500 are returned.

{
  "success": true,
  "data": [
    {
      "id": 4,
      "user_id": 1,
      "name": "Failed sign-ins",
      "filters": { "group": "authentication", "action": "failed", "date_preset": "7d" },
      "shared": true,
      "is_default": true,
      "created_at": "2026-11-12T09:30:00Z",
      "updated_at": "2026-11-12T09:30:00Z",
      "own": true,
      "editable": true
    }
  ]
}
Field Type Meaning
data[].id integer The view’s id
data[].user_id integer Who saved it
data[].filters object The saved filters, as strings. [] when the view has none
data[].filters.date_preset string A relative period, today, yesterday, 7d or 30d, worked out each time the view is opened. Replaces date_from and date_to
data[].shared boolean Whether every reader sees it
data[].is_default boolean Whether the log opens with it. Always false on somebody else’s view: a default is personal
data[].created_at string UTC, ISO 8601
data[].own boolean Whether you saved it
data[].editable boolean Whether you may change or delete it: your own, or any shared view if you have settings access

Errors

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-activity-log/v1/views" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-activity-log/v1/views');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = Buffer.from(`admin:${process.env.WP_APP_PASSWORD}`).toString('base64');
const response = await fetch('https://your-site.example/wp-json/plugixa-activity-log/v1/views', {
  headers: {
    'Authorization': `Basic ${auth}`,
  },
});
const { data } = await response.json();

Quick Links

Share