Added getter and setter for api_key.