Skip to main content
GET
Get Chat Messages
This endpoint uses cursor-based pagination for infinite scroll. Pass last_seen_id with the ID of the last message from the previous page to fetch the next set of results. Omit it for the first page.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

Worker ID

chat_id
string
required

Chat ID

Query Parameters

last_seen_id
string

ID of the last message from the previous page. Omit for the first page.

limit
integer
default:20

Maximum number of messages to return per page.

Response

OK

messages
object[]

List of chat messages.

has_more
boolean

Whether there are more messages available beyond this page.