Analytics API

Campaign performance metrics, lead statistics, and sequence analytics

Analytics-First Design

The Analytics API is designed from day one with comprehensive querying capabilities. Every endpoint supports consistent pagination, filtering, sorting, and aggregation.

📊 Pagination

Cursor-based pagination on all list endpoints. Use limit and starting_after for efficient traversal of large datasets.

🔍 Filtering

Filter by date range, status, campaign, and more using filter[field]=value query parameters.

↕️ Sorting

Sort results with sort=field (ascending) or sort=-field (descending).

📈 Aggregation

Get daily, hourly, or campaign-level aggregations with granularity parameter.

Example Request

GET
/api/v1/campaigns/{id}/analytics
curl -X GET "https://beam.lightmeter.io/api/v1/campaigns/4ed5a7d2-320c-445e-a16c-7ab932bc259a/analytics?filter[start_date]=2024-01-01&filter[end_date]=2024-01-31&granularity=daily" \ -H "Authorization: Bearer your_api_key_here" \ -H "Content-Type: application/json"