# Unsupported grant type

**URL:** <https://devforum.zoom.us/t/unsupported-grant-type/97220>\
**Category:** API and Webhooks\
**Created:** [October 23, 2023, 12:08pm UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220 "2023-10-23T12:08:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmalik](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bmalik](https://devforum.zoom.us/u/bmalik)\
**Post date:** [October 23, 2023, 12:08pm UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220/1 "2023-10-23T12:08:52Z")

</div>

The Api :- [https://zoom.us/oauth/token](https://zoom.us/oauth/token)

Error:- {  
“reason”: “unsupported grant type”,  
“error”: “unsupported\_grant\_type”  
}

I am calling the api using Postman and passing the grant-type as account\_credentials and also the account id . It is a POST request. Also the content-type is set to x-www-form-url-encoded . But the response is the error pasted above.

Let me know how to resolve this issue.

Thanks

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 23, 2023, 12:17pm UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220/3 "2023-10-23T12:17:08Z")

</div>

Hi @bmalik , is this for Server-to-Server OAuth or OAuth2?

Since, you’re passing grant type as account\_credentials, it sounds like your intended use is for S2S. You can verify the exact set up you need for either in our public workspace:

OAuth 2 Postman Workspace: [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/request/22097587-82698a23-7af5-4f3f-bf2e-a62c3eb8903d)

Server-to-Server: [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/folder/22097587-0021aa9e-17f5-478e-b106-dfb31b930153)

For S2S, no request body format is needed (unlike with OAuth 2.0):

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/3/1382c54aee59e3cbc353d04b84baae53457ae460.png)

---

<div class="post-metadata">

**Author:** ![bmalik](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bmalik](https://devforum.zoom.us/u/bmalik)\
**Post date:** [October 23, 2023, 12:29pm UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220/4 "2023-10-23T12:29:11Z")

</div>

Hi,

This for Server to Server Oauth . I have already tried using the public workspace but run into the same problem. I can give a demo also if needed.

Thanks,  
Bhawana

---

<div class="post-metadata">

**Author:** ![bmalik](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bmalik](https://devforum.zoom.us/u/bmalik)\
**Post date:** [October 24, 2023, 10:09am UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220/5 "2023-10-24T10:09:02Z")

</div>

How to fetch the account\_id required to get the access token . Right now I am using the account number displayed on the user profile page . Is that correct?

---

<div class="post-metadata">

**Author:** ![bmalik](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bmalik](https://devforum.zoom.us/u/bmalik)\
**Post date:** [October 24, 2023, 11:33am UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220/6 "2023-10-24T11:33:25Z")

</div>

Hi ,

I understood where I had been going wrong . I was using SDKkey and secret instead of Client Id and secret of Server to Server Auth app and also the account number was wrong. I could finally generate the access token. You can close the ticket now.

Thanks,  
Bhawana

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 24, 2023, 2:29pm UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220/7 "2023-10-24T14:29:48Z")

</div>

> [@bmalik](#):
>
> How to fetch the account\_id required to get the access token . Right now I am using the account number displayed on the user profile page . Is that correct?

Yes this is correct and I’m glad it’s now resolved!

---

<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:** [October 25, 2023, 2:30pm UTC](https://devforum.zoom.us/t/unsupported-grant-type/97220/8 "2023-10-25T14:30:14Z")

</div>

Closed on October 25, 2023, 2:30pm UTC

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