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
numberId?string

Target the engine on one of this account's WhatsApp numbers (the Number id). 404 NUMBER_NOT_FOUND if the number is not this account's; 409 ENGINE_NOT_ONLINE if that number has no engine online. Yields to engineId when both are given.

Length1 <= length <= 200
phone?string

Target one of this account's WhatsApp numbers by its E.164 phone (digits, optional leading +). 404 NUMBER_NOT_FOUND if it is not this account's. Yields to numberId when both are given and name the same Number; 400 CONFLICTING_TARGET if they differ.

Length1 <= length <= 32
fanoutLimit?integer

With no number target, read at most this many of the account's WhatsApp numbers (default 5). Numbers over the cap are listed in skippedNumbers.

Range0 < value
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