# Cannot Authenticate my Server to Server app and get my first token

**URL:** <https://devforum.zoom.us/t/cannot-authenticate-my-server-to-server-app-and-get-my-first-token/96154>\
**Category:** Authentication\
**Created:** [October 3, 2023, 8:49am UTC](https://devforum.zoom.us/t/cannot-authenticate-my-server-to-server-app-and-get-my-first-token/96154 "2023-10-03T08:49:50Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![thierry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thierry/32/52681_2.png) [@thierry](https://devforum.zoom.us/u/thierry)\
**Post date:** [October 3, 2023, 6:13pm UTC](https://devforum.zoom.us/t/cannot-authenticate-my-server-to-server-app-and-get-my-first-token/96154/6 "2023-10-03T18:13:05Z")

</div>

> [@Server-to-Server OAuth returns 400 when requesting access token - Powershell](https://devforum.zoom.us/t/server-to-server-oauth-returns-400-when-requesting-access-token-powershell/76999/2):
>
> –location --request POST ‘[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)’ \ –header ‘Authorization: Basic Base64Encoder(clientId:clientSecret)’ \ –data-raw ‘’

@Gianni,  
I am still working to understand what is going on because :

- Following your lead, I was able to generate a token with postman (had to make a branch in my workspace that’s all)

- Usually I am pretty good (I have about 15 API under my belt) at translating Postman cURL for my environment (I am integrating Zoom in FileMaker database) but so far no luck.

- It is a syntax problem, my base64 encoding is correct because I have same result as Postman and Postam was successful at getting a token.

As mentioned, I’ll keep the forum updated once I find the solution.

Thanks again

---

_[View the full topic](https://devforum.zoom.us/t/cannot-authenticate-my-server-to-server-app-and-get-my-first-token/96154)._
