Moved request helper into the api package