# Get Zoom token using curl

**URL:** <https://devforum.zoom.us/t/get-zoom-token-using-curl/92348>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [July 25, 2023, 6:15am UTC](https://devforum.zoom.us/t/get-zoom-token-using-curl/92348 "2023-07-25T06:15:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saylikhan97](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@saylikhan97](https://devforum.zoom.us/u/saylikhan97)\
**Post date:** [July 25, 2023, 6:15am UTC](https://devforum.zoom.us/t/get-zoom-token-using-curl/92348/1 "2023-07-25T06:15:52Z")

</div>

Hi Everyone.  
I am trying to integrate Zoom in Laravel but I want to get a token using the curl command provided by Zoom documentation (server to server Oauth) and want everyone to create a meeting from one account I used in my website using that token.  
When I run the command It gives me this error.

COMMAND: 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)’  
I have changed the details and provided base65 encoded value.

OUTPUT:  
{  
“reason”: “Invalid client\_id or client\_secret”,  
“error”: “invalid\_client”  
}

If anyone can help with this.  
Thanks and regards

---

<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:** [July 26, 2023, 2:27pm UTC](https://devforum.zoom.us/t/get-zoom-token-using-curl/92348/2 "2023-07-26T14:27:40Z")

</div>

Hi @saylikhan97  
Thanks for reaching out to us and welcome to our community,  
Your command looks good to me and I just did some testing myself and I am able to generate a token with the same command.  
Can you please make sure that your Server to Server OAuth app is activated and try again?

---

<div class="post-metadata">

**Author:** ![saylikhan97](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@saylikhan97](https://devforum.zoom.us/u/saylikhan97)\
**Post date:** [July 27, 2023, 3:47am UTC](https://devforum.zoom.us/t/get-zoom-token-using-curl/92348/3 "2023-07-27T03:47:32Z")

</div>

I can send you some details like screenshots etc If you can guide. I must have missed something.  
Thanks and regards.

---

<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:** [July 27, 2023, 12:12pm UTC](https://devforum.zoom.us/t/get-zoom-token-using-curl/92348/4 "2023-07-27T12:12:55Z")

</div>

Hi @saylikhan97  
I will send you a private message, please make sure to follow up with more details

---

<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:** [July 30, 2024, 3:49am UTC](https://devforum.zoom.us/t/get-zoom-token-using-curl/92348/5 "2024-07-30T03:49:01Z")

</div>

Closed on July 30, 2024, 3:49am UTC

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