code: def identify(self, req, resp, resource, uri_kwargs):
          
          try:
              return req.get_header('X-Api-Key', True)
          except (KeyError, HTTPMissingHeader):
              pass
docs: Initialize X-Api-Key authentication middleware.