Contents
On this page
Get Archived Event - Plugixa Activity Log
GET /plugixa-activity-log/v1/archive/events/{id}
One archived event in full: its decoded details, a link to the object when it still exists, and its definition.
Needs the view access level (see who can call what). Needs Plugixa Activity Log Pro, with the Archive module on under Plugixa Activity Log -> Monitors.
Request
GET https://your-site.example/wp-json/plugixa-activity-log/v1/archive/events/1204
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The event’s id, the same it had in the live log |
Responses
200 OK. data is the event.
{
"success": true,
"data": {
"id": 1204,
"occurred_at": "2026-03-02T22:41:09Z",
"event_code": 1003,
"severity": "medium",
"group": "authentication",
"group_label": "Sign-ins",
"site_id": 1,
"user": { "id": 5, "login": "sam", "name": "Sam Lee", "exists": true },
"user_role": "editor",
"ip": "203.0.113.9",
"object": { "type": "user", "id": 5, "label": "sam", "url": "https://your-site.example/wp-admin/user-edit.php?user_id=5" },
"action": "failed",
"message": "Failed sign-in attempt for “sam”: the password was wrong.",
"context": { "attempted": "sam" },
"definition": {
"subgroup": "Sign-ins",
"template": "Failed sign-in attempt for “{attempted}”: the password was wrong."
}
}
}
| Field | Type | Meaning |
|---|---|---|
data.context |
object|array |
The details stored with the event. Their keys depend on the kind of event; an empty [] when there are none |
data.object.url |
string |
An admin link to the object when it is a post, media item, user or comment on this site that still exists and that you may edit. Empty otherwise |
data.definition |
object|null |
What this kind of event is, from today’s catalogue: subgroup and the message template. null for an event code the site no longer knows |
The other fields are as in Get Event.
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_activity_log_not_found |
No archived event with that id, or, for a site administrator on multisite, an event of another site. |
503 |
plugixa_activity_log_archive_unavailable |
The archive’s external database cannot be reached. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-activity-log/v1/archive/events/1204" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-activity-log/v1/archive/events/1204');
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/archive/events/1204', {
headers: {
'Authorization': `Basic ${auth}`,
},
});
const { data } = await response.json();
Quick Links
Share