Accessing Zoho Mail API

Accessing Zoho Mail API

Hi Team,
I've been trying to use the Zoho Mail API to test in the dev environment. I've successfully obtained an access token from this link "https://accounts.zoho.com/apiauthtoken/create?SCOPE=ZohoMail/ZohoMailAPI"
but when trying to use it for authorization i'm getting weird errors. Everything works fine in postman but in c# the zoho mail resource server returns 404/400.

  1. var client = new HttpClient
  2.             {
  3.                 BaseAddress = new Uri("http://mail.zoho.com/api/accounts")
  4.             };

  5.             client.DefaultRequestHeaders.Accept.Clear();
  6.             client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(AuthorizationHeader,"Zoho-authtoken" + _appSettings.SenderAccessKey);
  7.             var response = await _sharedClient.GetAsync();

  8.             if (response.IsSuccessStatusCode)
  9.             {

  10.             }

Thanks,
DK