# Zoom server to server outh error

**URL:** <https://devforum.zoom.us/t/zoom-server-to-server-outh-error/94680>\
**Category:** Meetings\
**Tags:** api\
**Created:** [September 8, 2023, 4:34am UTC](https://devforum.zoom.us/t/zoom-server-to-server-outh-error/94680 "2023-09-08T04:34:25Z")\
**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, 4:34am UTC](https://devforum.zoom.us/t/zoom-server-to-server-outh-error/94680/1 "2023-09-08T04:34:25Z")

</div>

var client = new RestClient(“[https://zoom.us/oauth/token](https://zoom.us/oauth/token)”);

```
        var request = new RestRequest(Method.POST);
        request.AddHeader("content-type", "application/x-www-form-urlencoded");

        request.AddHeader("Host", "zoom.us");
        request.AddHeader("authorization", "Basic " + temp);
        request.AddHeader("accept", "application/json");
        request.AddHeader("content-type", "application/x-www-form-urlencoded");
        request.AddHeader("Content-Length", "64");
        request.AddParameter("application/x-www-form-urlencoded","grant_type", "account_credentials", ParameterType.RequestBody);
        request.AddParameter("application/x-www-form-urlencoded","account_id", "ABCCCCC", ParameterType.RequestBody);
       
        IRestResponse response5 = client.Execute(request);

```

connection aborted . tls sls secure connection.  
it works fine in postman my credentials and api secret key and al lis correct

---

<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:41pm UTC](https://devforum.zoom.us/t/zoom-server-to-server-outh-error/94680/2 "2023-09-08T21:41:44Z")

</div>

@nnangrani

What is the error that you are getting?
