List sent messages

Retrieve a paginated list of the messages sent by the authenticated user, one item per recipient.

Important notes:

  • Returns the messages sent on behalf of your customers and the messages you sent yourself. Each item includes the customer linked to the recipient.
  • Results are sorted by effective send date, most recent first, unless pagination[orderBy] is provided.
  • Array filters are sent with brackets: state[]=EXPIRED&state[]=REFUSED.
  • Works with both mTLS and API token authentication
Query Params
pagination
object

Pagination and sorting, sent as pagination[page]=2&pagination[limit]=20.

Default direction is desc for dates and asc for names.

state[]
array of objects

Only return messages in one of these states

state[]
string
enum

Only return messages of this type

Allowed:
customerNames[]
array of strings

Only return messages whose recipient belongs to one of these customers (exact name, case-insensitive).

customerNames[]
date

Only return messages sent on or after this date

date

Only return messages sent on or before this date (inclusive, whole day)

date

Only return messages received on or after this date

date

Only return messages received on or before this date (inclusive, whole day)

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json