code: function setOptions(endpoint) {
  	var options = {
  		url: baseURL + endpoint,
  		headers: {
  			'trak-api-key': process.env.TRAK_KEY
  		},
  		json: true
  	};
  
  	return options;
  }
docs: to get your api key, run the createApiKey.js script (read comments there for params). i keep mine in a .env file at my app root and use the nifty 'dotenv' library to read it. keep your key private.