Get Message Summary
Retrieve a list of messages within a specific date range. Supports filtering by from/to dates.
GET /messages/summary
Required Permission
read:DashboardYour API key must have this permission enabled in order to use this endpoint.
Example Request
curl --location 'https://<hostname>/messages/summary?fromDate=2025-01-01&toDate=2025-03-01' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'Replace YOUR_API_KEY with your API key.
Query Parameters
Parameter
Type
Required
Description
fromDate
string (YYYY-MM-DD)
Yes
Start date for the summary range.
toDate
string (YYYY-MM-DD)
Yes
End date for the summary range.
Response (HTTP 200)
{
"success": true,
"summary": {
"totalSent": 1000,
"totalDelivered": 980,
"totalFailed": 20,
"totalOptedOut": 5,
"totalPending": 10
}
}Response Fields
Field
Type
Description
totalSent
number
Total messages submitted in the period.
totalDelivered
number
Total messages successfully delivered.
totalFailed
number
Total messages that failed to deliver.
totalOptedOut
number
Total messages blocked due to opt-outs.
totalPending
number
Messages still awaiting delivery.
This endpoint supports sorting and pagination. See Search & Pagination Parameters for details.
Last updated