List DM messages
list_messagesDM messages of a brand, newest first by default, with cursor paging: all conversations within from/to (default the last 30 days), or the full history of one conversation with conversationId. updatedSince returns the messages sent or changed since then, ordered by updatedAt, for incremental sync. Each row has direction, sender (contact, team member, automation or AI), type, text, media, send, delivery, read, edit and delete times, status, the automation run and step that sent it, the comment a private reply answered, tracked links and whether it is excluded from training. Reading never marks messages as read.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"brand": "<brand>"
},
"name": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Only messages sent at or before this time; a plain date covers the whole day. | |
| from | No | Only messages sent at or after this time. Without conversationId it defaults to 30 days before "to". | |
| brand | Yes | ||
| limit | No | ||
| order | No | desc | |
| cursor | No | ||
| timeZone | No | ||
| updatedSince | No | Incremental sync: only messages sent or changed (delivered, read, edited, deleted) at or after this time, ordered by updatedAt. The newest updatedAt of a page is the starting point of the next sync. Without conversationId, from/to then only narrow when given. | |
| conversationId | No | Only messages of this conversation, its whole history unless from/to narrow it. |