Skip to main content

List the RCS send history

GET 

/api/partner-gateway/messages/history

Returns the messages sent through the API on RCS in a date range, one page at a time.

  • Required: channel=RCS and the send-date range from and to, both inclusive.
  • Campaign messages are not included, not even those of campaigns created with POST /campaigns. Follow a campaign with GET /campaigns/{id} and GET /campaigns/stats, or export its delivery reports with POST /exports/delivery-reports and its campaignId.
  • One entry per sent message: page and limit count the entries.
  • Pagination: page is 0-based and limit goes from 1 to 1000 (default 20). Without status, move to the next page until one comes back with fewer items than limit.
  • Large ranges: to extract thousands of messages, queue a CSV file with POST /messages/history/export instead of paging.

With status, a short or empty page does not mean the end. The filter is applied to each page of limit messages after it has been read, so a page can hold fewer items than limit, or none, while later pages still hold matching messages. To collect every message in one status, page without status and keep the entries whose deliveryStatus you want.

Date formats of from and to
FormatExampleRead as
Date alone2025-01-15The whole day in UTC: 00:00:00Z as from, 23:59:59Z as to.
Date-time without offset2025-01-15T10:30:00UTC.
ISO-8601 date-time with offset2025-01-15T00:00:00+01:00 or 2025-06-15T23:59:59ZThat instant.

Percent-encode a + in the offset as %2B: an unencoded + is decoded as a space.

Values of the status filter

ACCEPTED, REJECTED, DELIVERED, EXPIRED, DELETED, UNDELIVERABLE, ERROR, DISABLED, UNSUPPORTED, CONVERSATION_CLOSED or UNKNOWN, in any letter case. Which ones can appear depends on the channel: see the Delivery Statuses table in the API overview. Leave status out for every status.

For SMS, the export is an alternative to the filter: its Delivery result column carries the SMS status. On RCS and WhatsApp the export only tells sent from delivered.

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

Request​

Responses​

One page of sent messages: an empty array when nothing on the page matches the filters.