Skip to main content
POST
Retrieve a paginated list of messages for your account. Supports filtering by direction, phone number, and date range.

Request Body

integer
default:50
Maximum number of messages to return. Max: 100.
integer
default:0
Number of messages to skip for pagination.
string
Filter by message direction: inbound or outbound.
string
Filter by phone number (either from or to).
string
Filter messages after this ISO 8601 date.
string
Filter messages before this ISO 8601 date.

Response

array
Array of message objects. Each carries a thread_id (stable conversation id — same for every message between a contact and service number), a media array (attachments with 24h-signed url, mime_type, kind, caption; empty when none), and a delivery_error object (code, reason, at) when status is failed or undelivered, otherwise null. See Get Message for the full per-message shape.
integer
Total number of messages matching the filters.
boolean
Whether there are more messages to paginate through.