code: def get_api(self, name=None):
          
          if name is None:
              try:
                  return self.conf.get("api").copy()
              except:  # NOQA
                  raise Exception(f"Couldn't find the API configuration")
docs: Returns the API configuration