Skip to content
WhatSync/DocsAPI v1

List unread WhatsApp chats

List personal WhatsApp chats and groups that are unread on the phone (unread messages, or marked unread), newest first, with unread_count.

POST/api/v1/tools/list_unread_conversationsRead
Key permissions
Read chats and messages
Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work

How it works

Only chats WhatSync has seen read or marked unread on the phone, or that were unread when the phone linked, are known.

Body parameters

limitintegeroptional

Number of chats to return; defaults to 20

Response

HTTP 200 returns this tool's JSON directly, without an MCP content wrapper. Optional provider fields may be absent or null; check pagination and coverage before treating a page as complete.

Every response includes X-Request-Id. Errors use the shared error format and retry rules.

Schemas

Input JSON Schema
Input JSON Schema
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "description": "Number of chats to return; defaults to 20"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Response JSON Schema
Response JSON Schema
{
  "type": "object",
  "properties": {
    "conversations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "conversation_id": {
            "type": "string"
          },
          "is_group": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_message_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "unread_count": {
            "type": [
              "number",
              "null"
            ]
          },
          "unread_count_is_at_least": {
            "type": "boolean"
          },
          "marked_unread": {
            "type": "boolean"
          }
        },
        "required": [],
        "additionalProperties": true
      }
    },
    "note": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": true
}