# Getting error while calling post server to server outh token

**URL:** <https://devforum.zoom.us/t/getting-error-while-calling-post-server-to-server-outh-token/94677>\
**Category:** Meetings\
**Tags:** api\
**Created:** [September 8, 2023, 2:56am UTC](https://devforum.zoom.us/t/getting-error-while-calling-post-server-to-server-outh-token/94677 "2023-09-08T02:56:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnangrani](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nnangrani/32/51851_2.png) [@nnangrani](https://devforum.zoom.us/u/nnangrani)\
**Post date:** [September 8, 2023, 2:56am UTC](https://devforum.zoom.us/t/getting-error-while-calling-post-server-to-server-outh-token/94677/1 "2023-09-08T02:56:39Z")

</div>

getting this error when i make post call  
response Id = 464, Status = WaitingForActivation, Method = “{null}”, Result = “{Not yet computed}” System.Threading.Tasks.Task\<System.Net.Http.HttpResponseMessage\>

here is the code  
string ApiSecret = “”  
var temp = Convert.ToBase64String(Encoding.ASCII.GetBytes(apicilentid + “:” + ApiSecret));

```
        // //Post body content

        using (var client = new HttpClient())
        {
            client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", temp);
            client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
            client.DefaultRequestHeaders.Host = "zoom.us";
           
            // POST content
            var content = new FormUrlEncodedContent(
                 new Dictionary<string, string> { { "grant_type", "account_credentials" },
             { "account_id", "" } });

            // make request

            var response = client.PostAsync("https://zoom.us/oauth/token", content);

```

key account id client id are correct. it works in postman

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [September 8, 2023, 9:48pm UTC](https://devforum.zoom.us/t/getting-error-while-calling-post-server-to-server-outh-token/94677/2 "2023-09-08T21:48:58Z")

</div>

[Whats the error?](https://devforum.zoom.us/t/zoom-server-to-server-outh-error/94680/2)
