# Unable to get access token using account credentials

**URL:** <https://devforum.zoom.us/t/unable-to-get-access-token-using-account-credentials/70018>\
**Category:** Authentication\
**Created:** [June 6, 2022, 12:14pm UTC](https://devforum.zoom.us/t/unable-to-get-access-token-using-account-credentials/70018 "2022-06-06T12:14:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alc.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alc.zoom/32/21066_2.png) [@alc.zoom](https://devforum.zoom.us/u/alc.zoom)\
**Post date:** [June 6, 2022, 12:14pm UTC](https://devforum.zoom.us/t/unable-to-get-access-token-using-account-credentials/70018/1 "2022-06-06T12:14:37Z")

</div>

Hi Experts,

First, I have no Dev background. Any help would be much appreciated. I need to migrate my JWT used in my Zoom/Azure auto user provisioning to Server-toServer OAuth App. I have followed this documentation in [Create a Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/).

I’m lost where it says, “ **Use account credentials to get an access token** ”

On the code below, which info should I fill in to get my access token?

```auto
curl -X POST -H 'Authorization: Basic Base64Encoder(clientId:clientSecret)' https://zoom.us/oauth/token?grant_type=account_credentials&account_id={accountId}

```

I tried this, curl -X POST -H ‘Authorization: Basic Base64Encoder( **myClientID** : **myClientSecret** )’ [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id=](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=) **myAccountID**

I’m getting an error:

_no matches found: [https://zoom.us/oauth/token?grant\_type=account\_credentials](https://zoom.us/oauth/token?grant_type=account_credentials)_

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [June 9, 2022, 10:02pm UTC](https://devforum.zoom.us/t/unable-to-get-access-token-using-account-credentials/70018/2 "2022-06-09T22:02:04Z")

</div>

Hi @alc.zoom

Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
Can you please confirm that you are using the account\_id associated to your Server to Server app in your account?

---

<div class="post-metadata">

**Author:** ![upedzoomaccountadmin](https://avatars.discourse-cdn.com/v4/letter/u/cab0a1/32.png) [@upedzoomaccountadmin](https://devforum.zoom.us/u/upedzoomaccountadmin)\
**Post date:** [June 16, 2022, 4:10am UTC](https://devforum.zoom.us/t/unable-to-get-access-token-using-account-credentials/70018/3 "2022-06-16T04:10:30Z")

</div>

Have ing the same issue here - I suspect where they have Base64Encoder( **myClientID** : **myClientSecret** ) they mean actually base64 encode your client and secret - i.e. in bash

```auto
curl -v -X POST -H "Authorization: Basic $(echo -n $clientId:$clientSecret|base64)" "https://zoom.us/oauth/token?grant_type=account_credentials&account_id=$accountId

```

where $clientId, $clientSecret and $accountId are all set appropriately. I grabbed the accountId from using an existing JWT and calling GET /users/me, as suggested in elsewhere in the forums

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [June 21, 2022, 6:26pm UTC](https://devforum.zoom.us/t/unable-to-get-access-token-using-account-credentials/70018/4 "2022-06-21T18:26:43Z")

</div>

Hey @upedzoomaccountadmin  
Are you still having this issue?  
I just posted this guide, maybe it will help you debug your issue further

> [@How to user Server-to-Sever OAuth app with Postman](https://devforum.zoom.us/t/how-to-user-server-to-sever-oauth-app-with-postman/70848):
>
> How to use our Server-to-Server OAuth with Postman? As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced [Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app) That being said, here is a quick and simple guide on how to use or new app with Postman As stated in our documentation here: This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…

Best,  
Elisa
