Get dashboard

GET/api/v1/dashboard

Headline KPIs, the funnel, a by-day series, and your top magnets.

analytics:readRead dashboard KPIs, analytics, and insights.

Notes

These are the same numbers the dashboard screen shows, computed by the same code, so the API and the UI cannot disagree.
by_day buckets sends on the day they were sent and opens and clicks on the day they happened, in IST. An open on a later day appears on that later day, not on the send date.
Opens and clicks only count against deliveries that actually left, so a rate can never exceed 100%.

Parameters

Name In Type Default Description
range query string 30d Window to report on. One of: 7d, 30d, 90d, all.
scope query string active Whether archived magnets are included. One of: active, all.

Example

curl "https://resources.ashwanth.dev/api/v1/dashboard" \
  -H "Authorization: Bearer $LEADMAGNET_API_KEY"
Try it
API key
Held in this page only, never saved or sent anywhere but this API. If you are signed in, you can leave it blank.
Parameters
range
scope
Request
GET /api/v1/dashboard