def list_faxes(self, user_id, **kwargs):  # noqa: E501
        """Get fax records  # noqa: E501

        With this API call you will be able to retrieve a collection of faxes (either sent or received or spam based on the category selected). If you want to filter your archive please provide the `category` parameter  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.list_faxes(user_id, async=True)
        >>> result = thread.get()

        :param async bool
        :param str user_id: 'self' or user id of a corporate member (required)
        :param str category: Category parameter can be one of these values: **inbox**, **sent**, **spam**
        :param str after: Start date to get records from that date
        :param str before: End date to get records before that date
        :param int limit: Limit of fax records you want to get per request
        :return: ResponseArchive
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return self.list_faxes_with_http_info(user_id, **kwargs)  # noqa: E501
        else:
            (data) = self.list_faxes_with_http_info(user_id, **kwargs)  # noqa: E501
            return data