# Getting NotFound error while generating access token

**URL:** <https://devforum.zoom.us/t/getting-notfound-error-while-generating-access-token/88980>\
**Category:** Meetings\
**Created:** [May 24, 2023, 5:38pm UTC](https://devforum.zoom.us/t/getting-notfound-error-while-generating-access-token/88980 "2023-05-24T17:38:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjushree.nimbalkar](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@manjushree.nimbalkar](https://devforum.zoom.us/u/manjushree.nimbalkar)\
**Post date:** [May 24, 2023, 5:38pm UTC](https://devforum.zoom.us/t/getting-notfound-error-while-generating-access-token/88980/1 "2023-05-24T17:38:19Z")

</div>

I have created Server-to-Server-oauth app in marketplace. I’m able to get the token through postman. Trying to get the token through C# code but it is giving ““Request failed with status code NotFound””

var client = new RestClient(“[https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id={accountId}](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=%7BaccountId%7D)”);  
var request = new RestRequest(Method.Post.ToString());

```
        request.AddHeader("authorization", "Basic {clientId:clientSecret}");
        request.AddHeader("content-type", "application/x-www-form-urlencoded");
         RestSharp.RestResponse response = client.Execute(request);

```

I have used the www.base64encode to generate the string as well. I’m using [ASP.NET](http://ASP.NET) Core Web API. Can you please let me know what is missing here.

Thanks,  
Manju
