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=RCSand the send-date rangefromandto, both inclusive. - Campaign messages are not included, not even those of campaigns created with
POST /campaigns. Follow a campaign withGET /campaigns/{id}andGET /campaigns/stats, or export its delivery reports withPOST /exports/delivery-reportsand itscampaignId. - One entry per sent message:
pageandlimitcount the entries. - Pagination:
pageis 0-based andlimitgoes from 1 to 1000 (default 20). Withoutstatus, move to the next page until one comes back with fewer items thanlimit. - Large ranges: to extract thousands of messages, queue a CSV file with
POST /messages/history/exportinstead of paging.
With
status, a short or empty page does not mean the end. The filter is applied to each page oflimitmessages after it has been read, so a page can hold fewer items thanlimit, or none, while later pages still hold matching messages. To collect every message in one status, page withoutstatusand keep the entries whosedeliveryStatusyou want.
Date formats of from and to
| Format | Example | Read as |
|---|---|---|
| Date alone | 2025-01-15 | The whole day in UTC: 00:00:00Z as from, 23:59:59Z as to. |
| Date-time without offset | 2025-01-15T10:30:00 | UTC. |
| ISO-8601 date-time with offset | 2025-01-15T00:00:00+01:00 or 2025-06-15T23:59:59Z | That 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
- 200
- 400
- 401
- 500
One page of sent messages: an empty array when nothing on the page matches the filters.
channel, from or to is missing or malformed, from is later than to, status is not one of the accepted values, or page or limit is not a whole number in range (page below 0, limit below 1 or above 1000, or page multiplied by limit above 2147483647). The response body names the parameter.
The API key is missing, invalid, or lacks the MESSAGES operation.
Unexpected server error. Retry after a short delay.