401 Unauthorized response

We're getting a 401 Unauthorized response on all the api endpoints. Code: static async Task MainMiAsync(string[] args, CancellationToken token) { var client = new HttpClient(); var queryString = HttpUtility.ParseQueryString(string.Empty); // Request headers client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{my primary key}"; var uri = "https://api.marketinvoice.com/investor/autobidsettings" + queryString; var response = await client.GetAsync(uri); Console.ReadKey(); } } Response: {StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Pragma: no-cache X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Cache-Control: no-cache Date: Tue, 12 Jan 2016 13:15:55 GMT X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Content-Length: 0 Expires: -1 }}


You're not signed in. Please sign-in to report an issue or post a comment.