Analytics
The analytics endpoints provide real-time data about your script executions, security events, and system health. Use them to build custom dashboards or monitoring tools.Dashboard overview
GET /api/vendor/metrics/overview
Get top-line metrics for your vendor account.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | String | ✅ | Bearer YOUR_API_KEY |
- 200 OK
| Field | Description |
|---|---|
active_projects | Number of projects you own |
total_executions | Sum of all key + project executions |
active_keys | Keys that are not expired |
api_status | Always "Operational" when reachable |
Security events
GET /api/vendor/metrics/events
Fetch recent security events (key creations, HWID resets, blacklists, etc.).
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | Integer | ❌ | Number of events to return (default: 4) |
- 200 OK
| Event Type | Meaning |
|---|---|
Success | Normal operations (project created, key generated) |
Warning | Suspicious activity (HWID mismatch, reset) |
Critical | Security threat (blacklist, blocked execution) |
Analytics chart data
GET /api/vendor/metrics/chart
Get detailed analytics data including execution stats, 12-hour event history, and system health.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
project_id | String | ❌ | Filter data to a specific project |
- 200 OK
| Field | Description |
|---|---|
stats | Summary metrics as label-value pairs |
chartData | Array of 12 values — event count per hour bucket |
timeLabels | Corresponding hour labels for the chart |
systemHealth | Real-time health check for all subsystems |