Analytics
List the best-performing campaigns
Campaigns sent in the window, ranked by open rate, capped at 50 rows. Not cursor-paginated: a leaderboard is a top-N by definition, and paging one would mean re-ranking on every page.
from defaults to 30 days ago and is clamped to at most 90 days back; to defaults to now. A wider request is narrowed rather than refused, and the window field states the range actually covered — read it before comparing two responses.
Requires the analytics:read scope — View your sending analytics and engagement metrics.
get/api/v1/analytics/top-campaigns
Request
- Base URL: https://api.sendly.now
- URL: https://api.sendly.now/api/v1/analytics/top-campaigns
- Auth: one of:
- HTTP bearer
- API key in cookie better-auth.session_token
- OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: analytics:read)
Query parameters
fromstring date-time nullable
Start of the window (ISO 8601). Defaults to 30 days ago; clamped to at most 90 days back.
tostring date-time nullable
End of the window (ISO 8601). Defaults to now.
limitinteger
Response
Ranked campaigns
Changes
No recorded changes to this operation across all 1 revision of this API.