List messages
Returns up to 100 of the most recent messages on the account’s numbers.
Searching. search matches the message body, case-insensitively,
anywhere in the text — it is a substring match, not a word search, so
voice matches “invoiced”. It searches your whole history, not just the
100 messages an unfiltered call returns, and then returns the 100 most
recent matches. It combines with every other filter.
A message whose content was cleared by data retention has an empty body and so matches nothing; the same is true of a media-only message, which is matched by neither its attachment’s name nor its content.
Authentication
Your Dial API key, sent as Authorization: Bearer sk_live_...
Query parameters
Case-insensitive substring match on the message body. Whitespace-only values are ignored, as though the parameter were absent.
One conversation: messages exchanged with this number, in both directions, across every line on the account. Group messages are never included — a group message is addressed to the group, and matching it against the participant who sent it would file their whole group into a private thread. Use groupId for those.
Filter to a single group conversation (see List groups). Combines with the other filters. A group ID that isn’t on your account returns an empty list rather than an error.