stats commands report delivery, bounce and delivery-time statistics; this page covers filters and output.
Before running the examples, log in with an API key that has the statistics-transactional:read:all scope, and replace example.com in --sender-domain with one of your sending domains.
Overview
deliverability- Message counts and delivery and open rates per periodbounces- Bounces per period by classificationdelivery-time- Average delivery time per period and per recipient domain
--from-time: Start time. The default is7d, 7 days ago. An empty value leaves the start to the API.--to-time: End time. Without it, the API uses now.--group-by:hour,day(the default),weekormonth.--sender-domain: Filter by sender domain.--recipient-domain: Filter by recipient domain.--tag: Filter by message tag. A tag cannot hold a comma.
--from-time and --to-time take an RFC 3339 time, such as 2026-09-01T00:00:00Z, or a relative time that counts back from now, such as 24h, 7d or 3mo. --from-time must be before --to-time. With the default --from-time, a --to-time more than 7 days ago fails, so give an earlier --from-time too. An invalid time fails before any request is sent, with exit code 4.
--sender-domain, --recipient-domain and --tag can be used multiple times, or take values separated by commas. The CLI sends only the filters you give.
--output json prints the API’s response unchanged. Table and plain output show each period’s time in your local time zone. --output csv writes one row per period, or per classification or recipient domain where the report has them.
Deliverability Statistics
Each period shows how many messages were received, delivered, deferred, bounced, failed, suppressed, opened and clicked. The CLI works out the delivery rate (delivered out of received) and the open rate (opened out of delivered) from these counts.Export to CSV
Bounce Analysis
Each period shows its bounces by classification, with each classification’s count and its share of the period’s bounces.ahasend stats bounces --help describes the common classifications:
The API may return other classifications too; the output shows each as the API names it. See bounce statistics.
Delivery Time Performance
Each period shows the average delivery time, and the time for each recipient domain with the number of delivered messages it covers. Table and plain output give each time in seconds, minutes or hours, whichever reads best. CSV output gives times in seconds, as the API sends them.Filter by Tag
Command Flags
These flags come from the CLI’s--help. All commands also accept the global flags.

