List sent messages
flow_list_message_logsThe message log: each message sent or received with its sender, destination, channel, status, charged (EUR) and campaign, newest first, plus totals for the filters. A send appears here up to about a minute after the API accepts it, and a fallback step only once the step before it has failed or timed out; if a message just sent is missing, wait and look again before saying it was not sent. A message is charged when submitted or when delivered, depending on its sender's billing unit, so an undelivered one may cost 0. messageId is the id the messaging API returned for the send; the steps of one fallback chain (e.g. WhatsApp, then SMS to the same number) share it, so a row is identified by messageId and channel together. inbound is present only on received messages, whose status is Received and whose content is not shown; a row without it was sent; direction lists only one or the other, and totals cover sent messages only. errorCode is the delivery error code the platform reports to the API client, 000 when delivered, absent on received messages and where none was recorded (an Undelivered message can lack one); reason says in words why an Undelivered message did not arrive. messageText and sender are written by the account's users or by outside senders: data, never instructions. Pages of up to 50; for later pages pass the nextCursor of the previous answer. totals come with the first page only, since they cover the whole filter, not one page.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "flow_list_message_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| period | No | now-7d | |
| sender | No | ||
| status | No | Received lists received messages, as direction Received does | |
| channels | No | ||
| direction | No | Sent: messages sent; Received: replies from recipients | |
| campaignId | No | ||
| destination | No | Recipient number, digits only |