rest api key authentication example