Skip to main content
GET
Get Chats
This endpoint uses cursor-based pagination for infinite scroll. Pass last_seen_id with the ID of the last chat from the previous page to fetch the next set of results. Omit it for the first page.
Use search_term to filter chats by title, or set all_chats to true to include inactive chats.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

Worker ID

Query Parameters

all_chats
boolean

Fetches all chats if true

search_term
string

Title search query for chats

last_seen_id
string

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

limit
integer
default:20

Maximum number of chats to return per page.

Response

OK

chats
object[]
has_more
boolean

Whether there are more chats available beyond this page.