# Server to server oAuth Application - grant\_type "account\_credentials" error

**URL:** <https://devforum.zoom.us/t/server-to-server-oauth-application-grant-type-account-credentials-error/89227>\
**Category:** API and Webhooks\
**Created:** [May 29, 2023, 7:03pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-application-grant-type-account-credentials-error/89227 "2023-05-29T19:03:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![datherton](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@datherton](https://devforum.zoom.us/u/datherton)\
**Post date:** [May 29, 2023, 7:03pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-application-grant-type-account-credentials-error/89227/1 "2023-05-29T19:03:27Z")

</div>

I’m dealing with an issue when trying to generate a bearer token using a server-to-server oAuth app. I’m sending the information across using the grant\_type “account\_credentials” but getting response

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

If I use the grant\_type of “client\_credentials”, I am able to generate a bearer token yet when I try to use that token on an api endpoint, I get the similar grant\_type error as above.

I also tried using the core curl sample provided in the docs ([https://developers.zoom.us/docs/internal-apps/s2s-oauth/](https://developers.zoom.us/docs/internal-apps/s2s-oauth/))

curl -X POST [https://zoom.us/oauth/token](https://zoom.us/oauth/token) -d ‘grant\_type=account\_credentials’ -d ‘account\_id={accountID}’ -H ‘Host: [zoom.us](http://zoom.us)’ -H ‘Authorization: Basic Base64Encoded(clientId:clientSecret)’

and still got the “unsupported grant type” error…  
Has anyone experienced this as well?  
Could another bad setting like incorrect encoded client:secret cause that error?  
At a loss…

---

<div class="post-metadata">

**Author:** ![datherton](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@datherton](https://devforum.zoom.us/u/datherton)\
**Post date:** [May 29, 2023, 9:05pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-application-grant-type-account-credentials-error/89227/2 "2023-05-29T21:05:38Z")

</div>

Stupid developer (me)  
App created was the wrong type. I thought I made a “Server-To-Server oAuth” app but instead just a standard oAuth…once I created the right type, it worked…  
Apologies all…learn from me :oP

---

<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:** [June 1, 2024, 12:42pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-application-grant-type-account-credentials-error/89227/3 "2024-06-01T12:42:21Z")

</div>

Closed on June 1, 2024, 12:42pm UTC

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