docs: def _get_headers(self, is_json=False):
          """
          Create headers dictionary for a request.
  
          :param boolean is_json: Whether the request body is a json.
          :return: The headers dictionary.
          """
  
          headers = {"Authorization": "Bearer " + self._get_token()}
  
          if self.client_type is not None:
              headers["Client-Type"] = self.client_type
  
          if self.client_version is not None:
              headers["Client-Version"] = self.client_version
  
          if self.client_metatag is not None:
              headers["Client-Metatag"] = self.client_metatag
  
          if is_json:
              headers['Content-Type'] = 'application/json'
  
          return headers