# Unable to get ZAK

**URL:** <https://devforum.zoom.us/t/unable-to-get-zak/62115>\
**Category:** API and Webhooks\
**Created:** [January 2, 2022, 5:14pm UTC](https://devforum.zoom.us/t/unable-to-get-zak/62115 "2022-01-02T17:14:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wbx440](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@wbx440](https://devforum.zoom.us/u/wbx440)\
**Post date:** [January 2, 2022, 5:14pm UTC](https://devforum.zoom.us/t/unable-to-get-zak/62115/1 "2022-01-02T17:14:04Z")

</div>

Unable to get ZAK using any of these methods:

var client = new RestClient(“[https://api.zoom.us/v2/users/me/zak](https://api.zoom.us/v2/users/me/zak)”);  
var request = new RestRequest(Method.GET);  
request.AddHeader(“authorization”, “Bearer MY\_JWT\_API\_KEY”);  
IRestResponse response = client.Execute(request);  
Console.Write(response.ToString());

or using this:

var client = new RestClient(“[https://api.zoom.us/v2/users/MY\_EMAIL/token?type=zak](https://api.zoom.us/v2/users/MY_EMAIL/token?type=zak)”);  
var request = new RestRequest(Method.GET);  
request.AddHeader(“authorization”, “Bearer MY\_JWT\_API\_KEY”);  
IRestResponse response = client.Execute(request);  
Console.Write(response.ToString());

or using this:

var client = new RestClient(“[https://api.zoom.us/v2/users/MY\_EMAIL/token?access\_token=MY\_JWT\_API\_KEY&type=zak](https://api.zoom.us/v2/users/MY_EMAIL/token?access_token=MY_JWT_API_KEY&type=zak)”);  
var request = new RestRequest(Method.GET);  
request.AddHeader(“authorization”, “Bearer MY\_JWT\_API\_KEY”);  
IRestResponse response = client.Execute(request);  
Console.Write(response.ToString());

In all these methods, response.Content is blank.

Please tell me how I can get this ZAK using C# SDK ?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 11, 2022, 1:18am UTC](https://devforum.zoom.us/t/unable-to-get-zak/62115/2 "2022-01-11T01:18:28Z")

</div>

Hey @wbx440,

Thank you for reaching out to the Zoom Developer Forum. It looks like the issue here may have to do with authorization. Instead of providing a JWT API Key, you’ll want to make sure that you follow our guide on [JWT App](https://marketplace.zoom.us/docs/guides/auth/jwt)s to generate a JWT token for authorization.

In my tests, this API worked with JWT and OAuth.

```http
GET https://api.zoom.us/v2/users/me/zak

Authorization: Bearer {{ JWT TOKEN }}

Response:
{
    "token": "{{ ZAK TOKEN }}"
}

```

In C#, are you able to call response.Content.ToString() to get the body of the request instead?

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 10, 2022, 11:19am UTC](https://devforum.zoom.us/t/unable-to-get-zak/62115/3 "2022-02-10T11:19:17Z")

</div>

Closed on February 10, 2022, 11:19am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
