Make the api key optional and set spec version