Events

Retrieve event counts

Per-name event counts over a bounded window, most frequent first.

The window defaults to the last 30 days and never reaches further back than 90: this is a GROUP BY over the highest-volume table in the system, and an all-time answer is not one it can keep giving at scale. A wider request is narrowed rather than refused, and the window field states the range actually covered.

Requires the events:read scope — View the custom events your application has recorded.

get/api/v1/events/stats

Request

  • Base URL: https://api.sendly.now
  • URL: https://api.sendly.now/api/v1/events/stats
  • 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: events: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.

Response

Event counts

Changes

No recorded changes to this operation across all 1 revision of this API.