List Messages
List all messages with optional filtering and pagination. Results are sorted by creation date, newest first.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
pageIndexintegerOptionalRange
0 <= value
Default
0
pageSizeintegerOptionalRange
1 <= value <= 100
Default
20
directionstringOptionalAllowed values
"INBOUND""OUTBOUND"statusstringOptionalAllowed values
"PENDING""SENT""SEND_FAILED""DELIVERED""DELIVERY_FAILED""RECEIVED""READ""QUEUED""FALLBACK_SENT"typestringOptionalAllowed values
"SMS""MMS""RCS"methodstringOptionalFilter by the method used to send the message.
Allowed values
"API""SDK""OTHER"fromstringOptionalFilter by sender phone number (E.164 format) or agent id.
Example
"agent_pinnacle"
tostringOptionalFilter by recipient phone number (E.164 format).
Example
"+14155550142"
contentstringOptionalSearch message content (partial match, case-insensitive).
Example
"Hello from Pinnacle!"
dateFromstringOptionalFilter messages created on or after this date (ISO 8601 format).
Format
date-time
Example
"2026-10-15T17:30:00Z"
dateTostringOptionalFilter messages created on or before this date (ISO 8601 format).
Format
date-time
Example
"2026-10-15T17:30:00Z"
Response Body
application/json
application/json
application/json
application/json