# Zoom API - Unable to retrieve access token

**URL:** <https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311>\
**Category:** API and Webhooks\
**Created:** [December 14, 2022, 6:18pm UTC](https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311 "2022-12-14T18:18:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![question](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@question](https://devforum.zoom.us/u/question)\
**Post date:** [December 14, 2022, 6:18pm UTC](https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311/1 "2022-12-14T18:18:10Z")

</div>

Endpoint:

[https://zoom.us/v2/oauth/token?grant\_type=client\_credentials](https://zoom.us/v2/oauth/token?grant_type=client_credentials)

**Description**  
_Details on your question, workflow or the problem you’re trying to solve._

I am trying to retrieve SMS information from one of our organization bot account but the initial step to retrieve token using basic auth is not returning any data back though upon making API call the status is returning 200 ok but no token in the return response

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Request URL / Headers **(without credentials or sensitive info like emails, uuid, etc.)** / Body_  
[https://zoom.us/v2/oauth/token?grant\_type=client\_credentials](https://zoom.us/v2/oauth/token?grant_type=client_credentials)  
_2. Authentication method or app type_  
OAuth App has been configured in marketplace  
Client key and secret has been taken from the application initial page  
Encoded the ClientKey:ClientSecret and provided basic base64encoded value as authorization  
_3. Any errors_  
No content/ token in the response with 200 OK

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [December 14, 2022, 11:11pm UTC](https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311/2 "2022-12-14T23:11:02Z")

</div>

Hi @question

Did you create an Oauth2 app or what kind of app have you created?

Let us know!

---

<div class="post-metadata">

**Author:** ![question](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@question](https://devforum.zoom.us/u/question)\
**Post date:** [December 14, 2022, 11:19pm UTC](https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311/3 "2022-12-14T23:19:14Z")

</div>

Hello,

Thank you for looking into this request.

We tried both OAuth and Server to Server Auth apps.

For both the apps, with endpoint provided before containing “v2” there is no return of token with 200 status but if we make call by removing “v2” from the endpoint, that gets us access token but that with that token we are unable to call any API.

For example, with the token we have got from

[https://api.zoom.us/oauth/token?grant\_type=client\_credentials](https://api.zoom.us/oauth/token?grant_type=client_credentials)

we attempted to call below endpoint:

[https://api.zoom.us/v2/accounts/](https://api.zoom.us/v2/accounts/)/settings

But resulted in “400 Bad Request”

{  
“code”: 200,  
“message”: “Invalid api key or secret.”  
}

* * *

So we are running into couple of Q’s:

1. Are we to make auth call without “v2” in the endpoint?
2. But for making other API calls we have to include “v2”?
3. In that case, why does the token returned without v2 in the creds endpoint is not working with other API call even though it has scope?

Thank you for the help,  
Sowmya

---

<div class="post-metadata">

**Author:** ![question](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@question](https://devforum.zoom.us/u/question)\
**Post date:** [December 15, 2022, 9:53pm UTC](https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311/4 "2022-12-15T21:53:27Z")

</div>

Thank you for the help.

We have found a workaround with this by making API call to the account credentials directly in the call.

But can you please provide help on whether we can delete an Session and SMS/MessageId using REST API?

Is DELETE method allowed?

Tried endpoint: [https://api.zoom.us/v2/messages?message\_id=](https://api.zoom.us/v2/messages?message_id=) which again returns 200 but the message is not being deleted.

Can you please provide the correct endpoint for deleting session and message if any?

Thank you

---

<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:** [January 3, 2023, 3:16pm UTC](https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311/5 "2023-01-03T15:16:28Z")

</div>

Hi @question  
Unfortunately, we do not have a Delete method for SMS or sessions.  
Feel free to create a feature request here

> **[Feature Requests](https://devforum.zoom.us/c/feature-requests/23)**
>
> Have an API or SDK feature request? Share it here!

Best,  
Elisa

---

<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:** [January 7, 2024, 6:53am UTC](https://devforum.zoom.us/t/zoom-api-unable-to-retrieve-access-token/80311/6 "2024-01-07T06:53:25Z")

</div>

Closed on January 7, 2024, 6:53am UTC

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