Skip to content

Live statistics

If you have questions regarding this API, please visit our API FAQ page.

Returns aggregated sending totals across every sending domain on your account for a rolling window of days, together with the equal-length window immediately before it. The two are designed to be compared directly, so you can render a period-over-period trend without making a second request.

Retrieving live statistics

Make a GET request to https://webapi.inboxroad.com/api/v2/stats/live/ with a valid X-API-Key (see v2 authentication).

Terminal window
curl -X GET 'https://webapi.inboxroad.com/api/v2/stats/live/?range=last_week' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json'

Returns 200 with a current and a previous object.

Query parameters

Param nameDescription
dateAnchor date the window ends on, in YYYY-MM-DD format. Defaults to today (UTC).
rangeLength of the window — one of the values listed in How the two windows line up. Default last_week.

How the two windows line up

current ends on date and spans range days. previous covers the same number of days immediately before it. The windows are always adjacent, equal in length, and non-overlapping, which is what makes a percentage change meaningful.

For date=2026-08-07:

rangecurrentprevious
todayAug 7Aug 6
yesterdayAug 6Aug 5
three_daysAug 5 – Aug 7Aug 2 – Aug 4
last_weekAug 1 – Aug 7Jul 25 – Jul 31
two_weeksJul 25 – Aug 7Jul 11 – Jul 24
last_monthJul 9 – Aug 7Jun 9 – Jul 8

Two things to note:

  • These are rolling windows, not calendar ones. last_week anchored on a Friday compares Saturday–Friday against the Saturday–Friday before it — not Monday–Sunday.
  • yesterday shifts the whole comparison back a day, so current is yesterday and previous is the day before. today compares today against yesterday.

Statistics object

Both current and previous contain the same fields.

Field nameDescription
total_sendMessages submitted for delivery during the window.
total_deliveredMessages accepted by the receiving server.
total_bouncedMessages that bounced.
bounce_ratetotal_bounced / total_send as a percentage, rounded to 1 decimal place.
delivery_rate100 - bounce_rate, rounded to 1 decimal place.

Counts are 0 — never null — for a window with no sending activity. Both rates are also 0 when nothing was sent, since there is nothing to take a percentage of.

Example response

{
"current": {
"total_send": 12043,
"total_delivered": 11890,
"total_bounced": 153,
"bounce_rate": 1.3,
"delivery_rate": 98.7
},
"previous": {
"total_send": 10877,
"total_delivered": 10684,
"total_bounced": 193,
"bounce_rate": 1.8,
"delivery_rate": 98.2
}
}

Possible response codes

Status codeDescription
200Statistics retrieved successfully.
401Unauthorized.
422Invalid date format, or range is not one of the allowed values.
429Rate limit exceeded. See Rate limiting.