Chats
List Chats
Retrieve a list of chats for a WhatsApp instance with optional filtering and pagination.
POST
Overview
You can fetch all chats from your WhatsApp instance using this endpoint. It supports advanced filtering through query parameters to help you find specific chats based on various criteria.This endpoint returns both individual and group chats. Use the
isGroup field in the response to distinguish between them.Authentication
This endpoint requires authentication via theapikey header.
string
required
Your Evolution API key for authentication.
Path Parameters
string
required
The name of your WhatsApp instance.
Request Body
The request body accepts a query object for filtering and pagination:object
Filter criteria for chats.
number
default:"20"
Maximum number of chats to return.
number
default:"0"
Number of chats to skip (for pagination).
object
Sorting configuration.
Response
array
Array of chat objects.
number
Total number of chats matching the query.