SureshakeDocs
ApiEndpoints

Analytics Endpoints

Audit trail and usage analytics for users and entities.

Analytics endpoints provide access to the event-based audit trail and usage statistics.

User Context

Retrieve the recent audit trail for the authenticated user.

GET/api/v1/analytics/user-context
curl -H "Authorization: Bearer $TOKEN" https://api.sureshake.com/api/v1/analytics/user-context

Communication History

Retrieve the history of emails and notifications sent to the user.

GET/api/v1/analytics/communication-history
curl -H "Authorization: Bearer $TOKEN" https://api.sureshake.com/api/v1/analytics/communication-history

Resource Analytics

Retrieve audit events related to a specific resource (e.g., a report or entity).

GET/api/v1/analytics/resource/:type/:id
curl -H "Authorization: Bearer $TOKEN" https://api.sureshake.com/api/v1/analytics/resource/report/8f2349ef...

Usage Statistics (Admin Only)

Retrieve high-level platform statistics.

GET/api/v1/analytics/stats/categories
curl -H "Authorization: Bearer $TOKEN" https://api.sureshake.com/api/v1/analytics/stats/categories

On this page