REST API Reference
REST API Reference
API Overview and Authentication
Last Updated: March 22, 2026Analytics API Overview and Authentication Base URL All DMSI Analytics API endpoints are under: https://your-site.com/wp-json/dmsilm/v1/analytics/ Authentication All endpoints require WordPress authentication with the manage_dmsilm_analytics capability. Supported authentication methods: Method How to Use Cookie Auth Used automatically by the WordPress admin AJAX calls Application Passwords Create at Users > Your Profile > Application Passwords Basic Auth...
Revenue API
Last Updated: March 22, 2026Revenue API GET /analytics/revenue Returns revenue KPIs and breakdowns for the requested period. URL: GET /wp-json/dmsilm/v1/analytics/revenue Parameters: Parameter Type Default Description date_from string 30 days ago Start date (YYYY-MM-DD) date_to string Today End date (YYYY-MM-DD) period string monthly Aggregation: daily, weekly, monthly, quarterly product_id integer null Filter to specific product Response: { "success": true, "data":...
Customer API
Last Updated: March 22, 2026Customer API GET /analytics/customers Returns customer metrics including LTV, CAC, churn, retention, and cohort data. URL: GET /wp-json/dmsilm/v1/analytics/customers Parameters: Parameter Type Default Description date_from string 30 days ago Start date date_to string Today End date period string monthly Aggregation period Response: { "success": true, "data": { "total_customers": 1248, "new_customers": 87, "churned_customers": 23, "net_growth": 64, "churn_rate":...
Download API
Last Updated: March 22, 2026Download API GET /analytics/downloads Returns download statistics including volume, geographic distribution, bandwidth, and failure rates. URL: GET /wp-json/dmsilm/v1/analytics/downloads Parameters: Parameter Type Default Description date_from string 30 days ago Start date date_to string Today End date period string daily Aggregation period product_id integer null Filter to specific product Response: { "success": true, "data": { "total_downloads": 3841,...
License API
Last Updated: March 22, 2026License API GET /analytics/licenses Returns license portfolio analytics including utilization rates, lifecycle data, and renewal forecast. URL: GET /wp-json/dmsilm/v1/analytics/licenses Parameters: Parameter Type Default Description date_from string 30 days ago Start date date_to string Today End date product_id integer null Filter to specific product Response: { "success": true, "data": { "active_licenses": 1248, "expired_licenses": 312, "utilization_rate": 67.4,...
Goals API
Last Updated: March 22, 2026Goals API The Goals API provides full CRUD operations for business goals. GET /analytics/goals List all goals. URL: GET /wp-json/dmsilm/v1/analytics/goals Response: Array of goal objects with current progress. POST /analytics/goals Create a new goal. URL: POST /wp-json/dmsilm/v1/analytics/goals Body: { "goal_type": "mrr", "goal_period": "monthly", "target_value": 10000, "period_start": "2026-03-01", "period_end": "2026-03-31" } PUT /analytics/goals/{id} Update an existing...
MRR API
Last Updated: March 22, 2026MRR API GET /analytics/mrr Returns MRR trend data with movement breakdown (new, expansion, churned MRR). URL: GET /wp-json/dmsilm/v1/analytics/mrr Parameters: Parameter Type Default Description date_from string 12 months ago Start date date_to string Today End date period string monthly Aggregation period Response: { "success": true, "data": { "current_mrr": 9420.00, "mrr_change": 740.00, "mrr_change_pct": 8.5, "movement": { "new_mrr":...
Real-Time and Events API
Last Updated: March 22, 2026Real-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...
Anomalies API
Last Updated: March 22, 2026Anomalies API GET /analytics/anomalies Returns a paginated list of detected anomalies with filtering options. URL: GET /wp-json/dmsilm/v1/analytics/anomalies Parameters: Parameter Type Default Description status string new Filter by status: new, investigating, resolved, dismissed severity string all Filter by severity: low, medium, high, critical limit integer 50 Results per page offset integer 0 Pagination offset Response: {...
Reports and Scheduled Reports API
Last Updated: March 22, 2026Reports and Scheduled Reports API GET /analytics/reports List all saved reports in the Report Library. URL: GET /wp-json/dmsilm/v1/analytics/reports Response: Array of report objects (id, title, report_type, created_at, last_run_at). POST /analytics/reports Save a new custom report configuration. URL: POST /wp-json/dmsilm/v1/analytics/reports Body: { "title": "My Revenue Report", "report_type": "revenue", "config": { "data_source": "revenue", "metrics": ["mrr", "arr", "total_revenue"],...
