Skip to main content

Get RCS campaign statistics

GET 

/api/partner-gateway/campaigns/stats

Returns delivery statistics for a date range, grouped by time bucket, newest bucket first.

  • Required: startDate and endDate (yyyy-MM-dd) and aggregateOn (hour, day, week or month, case-insensitive). endDate cannot be before startDate, and the window cannot exceed 1 year.
  • Campaign rows (isHttpStat false): each one adds up the campaigns of one time bucket, sendingMode and destinationType, placed by the date they started sending.
  • API rows (isHttpStat true): the messages you sent through the API, outside any campaign, one row per time bucket and channel. Leave them out when you need campaign figures only.
  • Drafts: isDraft defaults to false, which counts confirmed campaigns. isDraft=true counts only the campaigns not yet confirmed, which have usually sent nothing. API rows are included either way.
  • Keys scoped by channel: a key without CAMPAIGNS must send a sendingMode whose channels it holds (RCS_SMS needs RCS and SMS).
  • Pagination is optional: without page and limit every row comes back in one page. page is 0-based, limit sets the page size (default 10, at most 1000), and a limit without page returns the first page. direction is currently ignored.

With sendingMode=RCS or sendingMode=RCS_SMS the rows count the RCS_SMS campaigns only, and the RCS messages sent through the API. Campaigns sent on RCS only are counted only when sendingMode is omitted, together with every other channel.

GET /campaigns/stats is one endpoint for SMS, RCS and WhatsApp: this page describes it for RCS. See it for SMS or WhatsApp.

Request​

Responses​

The statistics rows of the date range.