List messages
list_messagesList your messages, newest first. Filter by number, direction, status, failure reason, date, batch schedule or customer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Exact destination number (E.164) | |
| tag | No | Filter to messages sent with this tag | |
| from | No | Exact sending number (E.164) | |
| limit | No | Max results (default 25, max 100) | |
| cursor | No | next_cursor from the previous page | |
| number | No | Filter to messages to or from this number | |
| status | No | ||
| direction | No | ||
| customer_id | No | Filter to one customer's messages | |
| schedule_id | No | Filter to the occurrences of one recurring schedule (sch_...) | |
| failure_code | No | Filter to messages that failed for this reason (the `failure.code` on a message) | |
| created_after | No | Inclusive. ISO timestamp or epoch ms. | |
| blocked_reason | No | Blocked messages with this reason. Implies status=blocked. | |
| created_before | No | Exclusive. ISO timestamp or epoch ms. |