Statistics
1 endpoints in this family.
Get delivery statistics
GET/api/v1/stats/delivery
Counts what became of the messages you sent over a period: sent, delivered, read, replied, failed and skipped, per day and per template (or per broadcast). The default period is the last 30 days; it cannot exceed 366 days. previous holds the same counts for the period of equal length just before, to compare.
Definitions. sent counts every message whose sending was attempted, failures included. delivered includes read. replied counts messages after which the contact wrote within 24 hours. skipped counts the recipients a broadcast left out before sending (no consent, no number) and is 0 for templates.
A message is counted on the day it was sent, with its current status: the exact time of a read is not kept.
Query parameters
fromstringStart of the period (ISO 8601). Default:
tominus 30 days.tostringEnd of the period, excluded (ISO 8601). Default: now.
sourcestringtemplate(default) counts template messages and groups them by template;broadcastcounts broadcast messages and groups them by broadcast.templatebroadcastchannelIdstringOnly the messages of this channel (a number).
Response
The counts of the period, per day and per template or broadcast.
data.fromstringISO 8601.
data.tostringISO 8601.
data.sourcestringWhat was counted.
templatebroadcastdata.totalsobjectsent,delivered,read,replied,failed,skipped.data.previousobjectThe same counts for the period of equal length just before.
data.daysobject[]Per day (UTC):
day,sent,delivered.data.groupsobject[]Per template or per broadcast (at most 50):
key,label,sent,delivered,read,replied,failed.
curl https://nodium.io/api/v1/stats/delivery \ -H "Authorization: Bearer $NODIUM_KEY"{ "data": { "from": "…", "to": "…", "source": "template", "totals": {}, "previous": {}, "days": [ {} ], "groups": [ {} ] }}