List SMS messages
org.intentschema.communication.sms.message.list.v1
JSON: bare · @sha256:c6ba542097b0…
Hash: sha256:c6ba542097b03a3222fac015be879a8c642c8bdfd757b230a1e4069a8d4660b7
List inbound and outbound SMS messages, optionally filtered by phone number or date range.
Payload
| Field | Type | Description |
target * | Target | |
object | object | |
object
| Field | Type | Description |
query | string | |
filter | object | |
limit | integer (minimum 1; maximum 500; default 50) | |
cursor | string | |
filter
| Field | Type | Description |
from | string | |
to | string | |
after | string (date-time) | |
before | string (date-time) | |
direction | enum: inbound | outbound | |
Result
| Field | Type | Description |
items * | object[] | |
next_cursor | string | |
items[]
| Field | Type | Description |
external_id | string | |
from | string | |
to | string | |
text | string | |
direction | enum: inbound | outbound | |
sent_at | string (date-time) | |
status | string | |
Examples
recent inbound
{
"target": {
"system": "twilio"
},
"object": {
"filter": {
"to": "+15551234567",
"direction": "inbound"
}
}
}