Get daily outbound SMS statistics
GET
/v1/sms/stats/daily
const stats = await bird.sms.stats.daily({ from: "2026-05-01", to: "2026-05-31" });
for (const point of stats.data ?? []) {
console.log(point.bucket, point.delivery);
}stats = client.sms.stats.daily(from_="2026-05-01", to="2026-05-31")
for point in stats.data or []:
print(point.bucket, point.delivery)series, err := client.Sms.Stats.Daily(context.Background(), bird.SmsStatsDailyParams{
From: time.Now().AddDate(0, 0, -7),
To: time.Now(),
})
if err != nil {
log.Fatal(err)
}
for _, point := range *series.Data {
fmt.Println(*point.Bucket, *point.Delivery.Accepted)
}$daily = $bird->sms->stats->daily(['from' => '2026-05-01', 'to' => '2026-05-31']);
foreach ($daily->getData() ?? [] as $point) {
echo $point->getBucket(), PHP_EOL;
}bird sms stats dailycurl -X GET "https://us1.platform.bird.com/v1/sms/stats/daily" \
-H "Authorization: Bearer $TOKEN"Response200
{
"period": {
"from": "2026-05-01T00:00:00Z",
"to": "2026-05-31T00:00:00Z",
"grain": "day",
"data_as_of": "2026-05-25T14:03:10Z"
},
"data": [
{
"bucket": "2026-05-25T00:00:00Z",
"delivery": {
"accepted": 14820,
"sent": 14810,
"delivered": 14720,
"undelivered": 60,
"failed": 25,
"rejected": 10,
"expired": 5
}
}
]
}
Returns one row of SMS lifecycle counts per calendar day. Rows use send-time attribution, so a delivery confirmation is counted on the day when its message was accepted. Recent rows can under-report delivered while delivery reports arrive. Days without activity contain zero counts.
Rates and latency are whole-window aggregates available from the summary endpoint. Use the message detail endpoints for individual message status.
A request may span up to 365 days; a longer window returns 422. Set timezone for local calendar days instead of UTC.
Query Parameters
from
string
Start date (inclusive), YYYY-MM-DD. Interpreted as a calendar day in timezone (a UTC day when timezone is omitted). Defaults to 30 days before to when omitted.
to
string
End date (inclusive), YYYY-MM-DD. Interpreted as a calendar day in timezone (a UTC day when timezone is omitted). Defaults to today in that timezone when omitted. Window may not exceed 365 days.
timezone
string
IANA timezone identifier used to group statistics, for example Asia/Kathmandu. The default is UTC. Day and hour boundaries, including the default window when from and to are omitted, follow this timezone. When this parameter is set, pass from and to as calendar days or Z instants instead of timestamps with explicit UTC offsets.
originator
string
Restrict the statistics to a single originator (the sender address messages were sent from). Mutually exclusive with the other dimension filters (country, category, carrier); only one may be set per request. Matches the message from.
country
string
Restrict the statistics to a single destination country, as an ISO 3166-1 alpha-2 code. Mutually exclusive with the other dimension filters (originator, category, carrier); only one may be set per request.
category
string
Restrict the statistics to a single category. Mutually exclusive with the other dimension filters (originator, country, carrier); only one may be set per request.
carrier
string
Restrict the statistics to a single delivery carrier. Mutually exclusive with the other dimension filters (originator, country, category); only one may be set per request.
Response Payload
period
object
required
The window and bucket grain the response covers, echoed from the request, plus the freshness boundary the data is current to.
Show child attributes
period.from
string
required
Inclusive start of the window. A calendar day (YYYY-MM-DD) on the day grain, an RFC 3339 instant rounded to the hour on the hour grain.
period.to
string
required
Inclusive end of the window. A calendar day (YYYY-MM-DD) on the day grain, an RFC 3339 instant rounded to the hour on the hour grain.
period.grain
string
required
The bucket grain of the series, either day or hour.
Possible values: day, hour
period.data_as_of
nullable string
Latest time reflected in the statistics. More recent events might not be included yet. Null when the freshness boundary is unavailable.
data
array of object
required
One row per day or hour in chronological order. Buckets with no activity contain zero counts.
Show child attributes
data.bucket
string
required
The day (YYYY-MM-DD) or hour (RFC 3339, on the hour) this point covers, matching the period's grain.
data.delivery
object
required
Show child attributes
data.delivery.accepted
integer
required
Distinct messages accepted for sending after admission checks.
data.delivery.sent
integer
required
Distinct messages handed off to the carrier for delivery.
data.delivery.delivered
integer
required
Distinct messages the carrier confirmed as delivered to the handset.
data.delivery.undelivered
integer
required
Distinct messages the carrier reported as not delivered.
data.delivery.failed
integer
required
Distinct messages that failed during sending.
data.delivery.rejected
integer
required
Distinct messages rejected before any send attempt, for example by sending policy or a message-generation failure.
data.delivery.expired
integer
required
Distinct messages that could not be delivered within their validity window and expired.