# Get access\_token by Server-to-Server OAuth

**URL:** <https://devforum.zoom.us/t/get-access-token-by-server-to-server-oauth/88658>\
**Category:** Meetings\
**Tags:** api\
**Created:** [May 19, 2023, 2:36am UTC](https://devforum.zoom.us/t/get-access-token-by-server-to-server-oauth/88658 "2023-05-19T02:36:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KalorokOops](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@KalorokOops](https://devforum.zoom.us/u/KalorokOops)\
**Post date:** [May 19, 2023, 2:36am UTC](https://devforum.zoom.us/t/get-access-token-by-server-to-server-oauth/88658/1 "2023-05-19T02:36:10Z")

</div>

“I am getting an error when trying to request an access\_token by making a request to the address [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). The error message is {  
“reason”: “unsupported grant type”,  
“error”: “unsupported\_grant\_type”  
}”.  
And my accountID is get from JWT decode ‘eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6IjY3YWNjNmQyLWMwMTctNGMzNy1iNGI4LWZmMWRkZjRkYTk4ZCJ9.eyJ2ZXIiOjksImF1aWQiOiJhYjRkYzU0YmZjODk1ZmY2NmNjNWY0OTk5NGRhODFkNSIsImNvZGUiOiJaTmwyNmJHcWI5aW5vWHgyT1BSUmYtZ3A2WlpxS2FwckEiLCJpc3MiOiJ6bTpjaWQ6ZzMyV1FPZGhSZG0xU3J6SVZfMks2ZyIsImdubyI6MCwidHlwZSI6MCwidGlkIjozLCJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJ1aWQiOiJlMGp2MDJfTVRpU2lIZVBkcEZibm5nIiwibmJmIjoxNjg0NDYyNTAzLCJleHAiOjE2ODQ0NjYxMDMsImlhdCI6MTY4NDQ2MjUwMywiYWlkIjoiY3ZNZ0hBMVRUQnVvODBVZUxoZDRVZyJ9.k4BTbnnzeaMvItQ-OFpzExXPepw\_XnLNX-VyCMorIcYzQhXLkHGxRm4NgESCRMyHegTaco7D1F5hWbWO6r-hnw’  
I got the filed aid = cvMgHA1TTBuo80UeLhd4Ug as my accountid
