Pass in API key, if configured, when making requests