Counters: Reading
Get Daily
Day by day in your timezone, for charts. Days without sends come back as zero, so the series has no gaps.
https://g.sendcorex.com/v1/counterscommand: get_dailyNeeds the counters:read scope on your API key.
Up to 400 days per command.
Arguments
fromstringrequiredFirst day,
YYYY-MM-DD, inclusive, intimezone.e.g.
"2026-10-01"tostringrequiredLast day,
YYYY-MM-DD, inclusive, intimezone.e.g.
"2026-10-17"timezonestringoptionalAn IANA timezone. The day boundaries follow it, daylight saving included. Defaults to
UTC.e.g.
"America/Sao_Paulo"
Quick start
import axios from 'axios';
const response = await axios.post(
'https://g.sendcorex.com/v1/counters',
{
commands: [
{
command: "get_daily",
args: {
from: "2026-10-01",
to: "2026-10-17",
timezone: "Asia/Kuala_Lumpur"
}
}
]
},
{ headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);
const [result] = response.data.results;
if (result.type !== 'SUCCESS') throw new Error(`${result.code}: ${result.message}`);
console.log(result.data);Response
{
"type": "SUCCESS",
"results": [
{
"command": "get_daily",
"id": "0",
"type": "SUCCESS",
"took_ms": 18,
"data": {
"timezone": "Asia/Kuala_Lumpur",
"daily": [
{
"day": "2026-10-17",
"delivered": 2104,
"bounced": 31,
"blocked": 5,
"complaints": 1,
"rate_limited": 4,
"total": 2144,
"delivered_rate": 98.13,
"bounce_rate": 1.45,
"blocked_rate": 0.23,
"complaint_rate": 0.05,
"rate_limited_rate": 0.19
}
],
"totals": {
"delivered": 48210,
"bounced": 612,
"blocked": 88,
"complaints": 9,
"rate_limited": 140,
"total": 49050,
"delivered_rate": 98.29,
"bounce_rate": 1.25,
"blocked_rate": 0.18,
"complaint_rate": 0.02,
"rate_limited_rate": 0.29
}
}
}
]
}Response fields
timezoneThe timezone the days were built in.
dailyOne entry per day from
fromtoto, oldest first, zeros included. Each hasday(YYYY-MM-DD) and the counters.totalsThe period summed.
deliveredEmails the recipient server accepted.
bouncedEmails that did not get through: rejected by the recipient server, expired in the queue, or stopped before sending. The reason of each one is in Bounces & Complaints.
blockedEmails the recipient server refused as spam, by policy or reputation at delivery time. The address is fine: the problem was the send (list quality, volume, authentication, content).
complaintsRecipients who reported your email as spam after receiving it: feedback loops (Outlook, Yahoo…) and abuse reports. Not part of
total, since those emails were already counted as delivered.rate_limitedEmails the recipient server kept deferring until the retries ran out.
totaldelivered+bounced+blocked+rate_limited: every email that got a result.delivered_rate / bounce_rate / blocked_rate / complaint_rate / rate_limited_rateEach counter as a percentage of
total, with 2 decimals.0whentotalis0.
Charting the last 30 days
Node.js
const to = new Date().toISOString().slice(0, 10);
const from = new Date(Date.now() - 29 * 86400_000).toISOString().slice(0, 10);
const [result] = await call({ command: 'get_daily', args: { from, to, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone } });
const labels = result.data.daily.map((d) => d.day);
const delivered = result.data.daily.map((d) => d.delivered);
const bounced = result.data.daily.map((d) => d.bounced);call is any helper that posts { commands: [...] } to /v1/counters and returns results.
Errors
HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.
- 401
INVALID_API_KEYThe API key does not exist, was revoked or was disabled in the dashboard.
- 429
RATE_LIMITEDMore than 15 requests/s or 15 in flight for the same IP + API key. Wait the number of seconds in Retry-After.
- CMD
MISSING_SCOPEThe API key does not have `counters:read`.
- CMD
INVALID_ARGSAn argument is invalid: a month that is not YYYY-MM, a day that is not YYYY-MM-DD, an unknown timezone, from later than to, a range that is too long…
- CMD
INTERNALServer error. The detail is only written to the server log.