Blueticks
Chats

Get latest chats & messages

Returns the most-recent non-archived chats (pinned first), each with its latest messages (newest-first).

One call — no per-chat round-trips. Requires chats:read.

Request

curl -X GET "https://api.blueticks.co/v1/latest-chats"
GET
/v1/latest-chats

Query Parameters

engine?string

Force the read to a specific engine TYPE: "gateway" (server-side pod, e.g. Baileys) or "regular" (browser extension). Overrides the default dual-engine read preference. 409 ENGINE_NOT_ONLINE if none of that type is online.

Value in"gateway" | "regular"
engineId?string

Exact engine clientId to target (from the engine status id); wins over engine. 409 ENGINE_NOT_ONLINE if not online.

Length1 <= length <= 200
numberOfChats?integer

Total chats to return, pinned first then most-recent (1-200, default 50).

Default50
Range1 <= value <= 200
numberOfMessages?integer

Latest messages to include per chat, newest-first (0-100, default 20).

Default20
Range0 <= value <= 100

Response

Response Body

application/json

application/json