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:Dashboard

Your 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.

circle-info

All endpoints shown in this documentation use a sample base URL. The production API endpoint is provided by our team upon request.

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.

circle-info

Date filters (fromDate and toDate) must be in YYYY-MM-DD format.

circle-check

Last updated