# How to Generate Correct Access Token

**URL:** <https://devforum.zoom.us/t/how-to-generate-correct-access-token/7425>\
**Category:** API and Webhooks\
**Created:** [January 9, 2020, 4:59pm UTC](https://devforum.zoom.us/t/how-to-generate-correct-access-token/7425 "2020-01-09T16:59:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john199054](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/john199054/32/2849_2.png) [@john199054](https://devforum.zoom.us/u/john199054)\
**Post date:** [January 9, 2020, 4:59pm UTC](https://devforum.zoom.us/t/how-to-generate-correct-access-token/7425/1 "2020-01-09T16:59:03Z")

</div>

**Description**  
OAuth REST API : I am trying to generate Access token in php CURL code but problem but access token generation api return “Invalid key”.

I think I am not able to generate correct Authorization header . Please help me and share php source code to generate header using client id and secret key.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 9, 2020, 6:19pm UTC](https://devforum.zoom.us/t/how-to-generate-correct-access-token/7425/2 "2020-01-09T18:19:06Z")

</div>

Hey @john199054, thanks for posting and using Zoom!

Please post the php CURL code you are using and steps to reproduce this error so I can debug.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:11pm UTC](https://devforum.zoom.us/t/how-to-generate-correct-access-token/7425/3 "2020-08-21T19:11:07Z")

</div>

Closed on August 21, 2020, 7:11pm UTC


