Skip to main content
GET
List messages

Authorizations

Authorization
string
header
required

HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).

Query Parameters

limit
integer
default:20

Page size, 1 to 100. Values outside the range are clamped, and pagination.limit shows the size used.

Example:

20

cursor
string

The previous page's pagination.next, unchanged, with the same filters.

internalNumberIds
string

1 to 100 comma-separated ids of your numbers (internalNumber.id).

Example:

"3104,3109"

userId
string

Only messages sent by this user.

Example:

"4207"

contactId
string

Only messages with any of this contact's phone numbers, matched exactly. A contact with no number gives an empty page.

Example:

"44210"

direction
enum<string>

inbound or outbound. Default: both.

Available options:
inbound,
outbound
channel
enum<string>

sms, mms or whatsapp. Default: all.

Available options:
sms,
mms,
whatsapp
createdAfter
string<date-time>

Only messages created at or after this time. RFC 3339 with a zone, such as 2026-11-12T10:00:00Z.

Example:

"2026-11-12T00:00:00Z"

createdBefore
string<date-time>

Only messages created before this time. RFC 3339 with a zone.

Example:

"2026-11-13T00:00:00Z"

Response

One page of messages, newest first.

data
object[]
required
pagination
object
required
requestId
string
required