Changed generate endpoint to be a POST because GET doesn't make sense