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.