List chats
List the chats (conversations) the connected WhatsApp engine sees, most-recent first.
Offset-paginated via limit + skip, with an optional case-insensitive substring search on the chat name via searchToken and a filter to restrict to one chat kind. Requires chats:read.
Request
curl -X GET "https://api.blueticks.co/v1/chats"{
"success": true,
"data": [
{
"chatId": "string",
"name": "string",
"chatType": "contact",
"pinned": true,
"archived": true,
"lastMessageAt": "2019-08-24T14:15:22Z",
"unreadCount": 0,
"markedUnread": true,
"lastMessageText": "string",
"lastMessageFromMe": true
}
],
"limit": 0,
"skip": 0,
"total": 0
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"requestId": "string",
"details": [
{
"path": "string",
"code": "string",
"message": "string"
}
]
}
}Query Parameters
Search token; when set, only items whose name matches are returned.
length <= 200Restrict to one chat kind.
"groups" | "contacts" | "newsletters"Keep only these chat kinds (INCLUDE semantics). Comma-separated or repeated.
1 <= itemsKeep only chats whose last message is at/after this ISO 8601 instant (offset allowed; approximate — see sinceApplied).
date-timeInclude the last message snippet on each chat row.
Include extended chat metadata (engine-side opt-in).
Include chats with no resolved name (default: skipped).
Include archived chats (default false → archived excluded).
Number of items to skip before the page (default 0).
00 <= valuePage size (1-200, default 50).
501 <= value <= 200Response
Response Body
application/json
application/json
Schedule message
Send or schedule a WhatsApp message to the chat named in the URL path (`{chatId}` — a phone number in E.164 format, e.g. `+15551234567`, or a WhatsApp chat id like `12345@c.us` / `1234567890@g.us` / `12345@newsletter`).
Get chat
Retrieve a single chat by its id — a phone number in international format (e.g. +14155551234) or a WhatsApp JID (`@c.us`, `@g.us`, or `@newsletter`).