Reference

Read API

Read your events over HTTP with a site key. Paid plans only.
The read API is available on every paid plan (Starter and up). Free is dashboard-only — see Plans & limits.
This page covers site keys — reading one site's events. To create or manage sites, or to read events across your whole account, use an account key with the Account API instead.

Authentication

Every request needs your site key as a bearer token, plus the domain it was issued for:

Terminal
curl https://api.hellolog.io/v1/wordpress-activity-audit-log/events \
  -H "Authorization: Bearer <your site key>" \
  -H "X-Site-Domain: example.com"

X-Site-Domain has to match the domain the key was minted for — it's how a leaked key stays useless anywhere except the WordPress install it was issued for.

List events

GET /events returns events for your site, newest first, cursor-paginated.

ParameterDescription
limitPage size, 1–200. Defaults to 50.
from / toISO 8601 time bounds on when the event occurred.
codeFilter by event code. Repeatable or comma-separated.
user_idFilter by WordPress user ID.
objectFilter by the object type the event touched (e.g. post, user).
event_typeFilter by event type (e.g. created, deleted).
target_typeFilter by the type of the object the event is about (e.g. post, order, user). Exact match.
target_idFilter by the ID of that object. Exact match. Give it together with target_type to read one object's history.
sourceFilter by where the change came from: admin, frontend, rest, ajax, cron, action-scheduler, cli or xmlrpc. Exact match.
severityFilter by severity. Repeatable or comma-separated. Closed set: info, low, medium, high, critical — anything else answers 400 {"error":"invalid severity"}.
qFree-text search over the event message.
cursorOpaque cursor from a previous response's next_cursor.
{
  "events": [
    {
      "id": 918273,
      "occurred_at": "2026-08-18T09:41:02Z",
      "code": 9000,
      "severity": "info",
      "object": "product",
      "event_type": "created",
      "user_id": 4,
      "username": "a.kovacs",
      "message": "WC product \"Merino scarf\" created.",
      "site_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ],
  "next_cursor": "eyJ0IjoiMjAyNi0wOC0xOFQwOTo0MDo1OVoiLCJpIjo5MTgyNzB9"
}

Pass next_cursor back as cursor to fetch the next page. An empty next_cursor means you're on the last page.

site_id is always your own site here — it rides along because this row shape is shared with the Account API, where it's what tells events from different sites apart.

Source, target and changes

Events sent by plugin 0.5.0 and later can carry five more fields. An event leaves out a field it has nothing for, and older events have none of them.

FieldDescription
sourceWhere the change came from: admin, frontend, rest, ajax, cron, action-scheduler, cli or xmlrpc.
targetThe object the event is about: a type, an id and, when there is one, a label.
changesWhat changed: a list of items with field, old and new. old or new is null when the field had no value before or has none now. Both are null when the value is not sent (text people wrote, passwords); a credential-like value reads [redacted].
linksURLs that open the object. Any of edit, view and revision.
varsThe values the message was built from, keyed by placeholder name.
{
  "id": 918274,
  "occurred_at": "2026-08-18T09:44:10Z",
  "code": 9001,
  "severity": "info",
  "object": "product",
  "event_type": "updated",
  "user_id": 4,
  "username": "a.kovacs",
  "message": "WC product \"Merino scarf\" updated.",
  "site_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "source": "admin",
  "target": { "type": "product", "id": "462093", "label": "Merino scarf" },
  "changes": [
    { "field": "regular_price", "old": "49.00", "new": "54.00" }
  ],
  "links": { "edit": "https://shop.example.com/wp-admin/post.php?post=462093&action=edit" },
  "vars": { "name": "Merino scarf" }
}

To read the history of one object, give target_type and target_id together:

Terminal
curl "https://api.hellolog.io/v1/wordpress-activity-audit-log/events?target_type=product&target_id=462093" \
  -H "Authorization: Bearer <your site key>" \
  -H "X-Site-Domain: example.com"

What gets logged explains what each field holds.

Get a single event

GET /events/{id} returns one event by ID, with a few extra fields the list endpoint leaves out to keep pages small: user_agent, session_id, post_id, post_type, post_status. The event carries the same source, target, changes, links and vars as in the list.

Rate limits

Requests are rate-limited per site key. If you're building an integration that polls, prefer a sane interval — a minute or more — over tight loops.

Also available: MCP

If you'd rather ask questions than write queries, connect the same site key to MCP and ask an AI tool directly.