Real-Time and Events API #
GET /analytics/realtime #
Returns live KPI counts for the current day.
URL: GET /wp-json/dmsilm/v1/analytics/realtime
Response:
{
"success": true,
"data": {
"active_users": 12,
"events_today": 487,
"downloads_today": 143,
"activations_today": 38
}
}
GET /analytics/events #
Returns a filterable stream of recent events.
URL: GET /wp-json/dmsilm/v1/analytics/events
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
category | string | all | Filter by event category (license, activation, download, customer, subscription) |
limit | integer | 50 | Number of events to return (max 200) |
since | string | — | Return events after this datetime (YYYY-MM-DD HH:MM:SS) |
Response:
{
"success": true,
"data": {
"events": [
{
"id": 48291,
"event_type": "license_activated",
"event_category": "license",
"object_id": 1234,
"customer_id": 56,
"product_id": 7,
"event_timestamp": "2026-03-22 14:32:00"
}
],
"total": 487
}
}
