docs: def get_query_param(request, key):
      """Get query parameter uniformly for GET and POST requests."""
      value = request.query_params.get(key) or request.data.get(key)
      if value is None:
          raise KeyError()
      return value