Get Chat Messages

Get the chat messages exchanged between the users passed as input. The endpoint is paginated because the number of messages can increase indefinitely.

The response has a messages key containing an array of messages and a meta key that contains metadata to use to implement pagination. More specifically, there are a next and a previous keys containing the parameters to pass to obtain respectively the next and the previous page of messages.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
users
array of strings
required
length between 2 and 2

Array of valid user aliases.

users*
string

Channel reference.

string
enum
Defaults to asc

The sort order of the returned messages.

Allowed:
integer
≥ 0
Defaults to 0

This number is just a counter to keep track of the page number requested on the client.

integer
≥ 1
Defaults to 50

Max number of messages returned in a single request.

string

A token provided in each response to keep track of the page index requested so far. Include the token in the request to obtain the subsequent page.

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json



© 2026 Kaleyra Inc. All rights reserved.
Trademarks, logos and service marks displayed on this site are registered and unregistered trademarks of Kaleyra Inc.