Skip to main content
GET
Node.js

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer rw_....

Required scope: message:read.

Query Parameters

after
string

Cursor for forward pagination. Send exactly one of after or before when paginating.

Example:

"748395130237498412"

before
string

Cursor for backward pagination. Send exactly one of after or before when paginating.

Example:

"748395130237498412"

limit
integer

Page size. Backend cursor schemas validate this between 2 and the route-specific maximum.

Required range: 2 <= x <= 100
status
enum<string>

Filter by message status.

Available options:
SENT,
QUEUED,
FAILED,
CANCELED,
RECEIVED,
SCHEDULED,
DELIVERED
country
string

Lowercase ISO 3166-1 alpha-2 country code inferred from the destination number.

Example:

"br"

encoding
enum<string>

Filter by message encoding.

Available options:
GSM7,
UCS2
scheduled
boolean

Filter by whether the message has scheduledAt set.

withCounts
boolean

When true, include a top-level count field with the total matching records.

Response

200 - application/json

Successful response

ok
boolean
required
data
object[]
required
Example:
cursor
object
required
count
integer

Only returned when withCounts=true is provided on the request.

Example:

2