Skip to main content
GET
Segment metrics are currently in private beta and only available to a limited number of users. The response shape might change before GA. Get in touch if you’re interested in testing this feature.Once you have access, upgrade your Resend SDK to use the methods on this page:
Contact counts for your account, optionally broken down by segment. Works across your whole account by default, or scoped to specific segments via segment_id.
Responses are cached for up to 15 minutes, so repeating the same request may return slightly stale data within that window.
All parameters are optional. With none, the response covers your whole account, includes every metric, and returns only totals. There’s no date range, so counts are a point-in-time snapshot rather than a historical window.

Query Parameters

When dimensions includes segment, data is ordered by each segment’s creation date, newest first.

Metrics

Every metric counts contacts, not emails.
totals counts each contact once. data counts a contact in every segment it belongs to.