Skip to main content
GET
List messages, newest first.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Query Parameters

limit
integer
default:50

Page size.

Required range: 1 <= x <= 200
cursor
string

The next_cursor of the previous page.

Maximum string length: 1024
to
string

A phone number in E.164 form.

Pattern: ^\+[1-9][0-9]{6,14}$
Example:

"+14155550100"

from
string

A phone number in E.164 form.

Pattern: ^\+[1-9][0-9]{6,14}$
Example:

"+14155550100"

direction
enum<string>

outbound_reply is a message a TwiML reply to an inbound message sent.

Available options:
inbound,
outbound_api,
outbound_reply
status
enum<string>
Available options:
scheduled,
queued,
sending,
sent,
delivered,
undelivered,
failed,
canceled,
received,
unknown
sent_after
string<date-time>

Only messages sent at or after this time. A message that has not been sent matches no time filter.

sent_before
string<date-time>

Only messages sent before this time.

Response

One page of messages.

data
object[]
required
next_cursor
string | null
required