List
Use this endpoint for the Media method to return a paged list of messages sorted with the most recent messages appearing first.
Path parameters
AccountSid
The unique identifier of the project that sent or received this message.
Query parameters
DateSent
Only return messages sent on this particular date, formatted as YYYY-MM-DD in UTC.
DateSent<
Only return messages sent before this date, formatted as YYYY-MM-DD in UTC.
DateSent>
Only return messages sent after this date, formatted as YYYY-MM-DD in UTC.
From
The phone number in E.164 format. For inbound messages, this will be the remote phone number who sent the message. For outbound messages, this will be one of your SignalWire phone numbers.
To
The phone number in E.164 format that received the message. For inbound messages, this is one of your SignalWire phone numbers; for outbound messages, this is the remote phone number that received the message.
Status
Current status of the message.
Page
The page number to retrieve. Default is 0.
PageSize
The number of items per page. Default is 50, maximum is 1000.
PageToken
The token for cursor-based pagination. Must start with 'PA' or 'PB'.
Response
uri
The URI of the current page.
first_page_uri
The URI of the first page.
next_page_uri
The URI of the next page, or null if there are no more pages.
previous_page_uri
The URI of the previous page, or null if this is the first page.
page
The current page number.
page_size
The number of items per page.
messages
List of messages.
Response
Request examples
Request: filter by date and from
In this example, we will filter messages to return only those sent from +15551234567 on or after 2018-08-01.