Skip to main content
GET
List SMS

Authorizations

Authorization
string
header
required

Agent token (alt_…) or OAuth access token; bound to one agent

Path Parameters

phoneNumberId
string
required

Phone number id

Query Parameters

direction
enum<string>
Available options:
inbound,
outbound
since

ISO timestamp; only messages created after it

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d))|(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?)$
cursor
string

Opaque cursor from a previous page's next_cursor

limit
integer
Required range: 1 <= x <= 100

Response

Messages

messages
object[]
required
next_cursor
string | null
required

Pass as cursor for the next page; null on the last page