# Failed to get an access token

**URL:** <https://devforum.zoom.us/t/failed-to-get-an-access-token/47881>\
**Category:** API and Webhooks\
**Created:** [April 13, 2021, 10:47pm UTC](https://devforum.zoom.us/t/failed-to-get-an-access-token/47881 "2021-04-13T22:47:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo.cadena1991](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ricardo.cadena1991/32/25842_2.png) [@ricardo.cadena1991](https://devforum.zoom.us/u/ricardo.cadena1991)\
**Post date:** [April 13, 2021, 10:47pm UTC](https://devforum.zoom.us/t/failed-to-get-an-access-token/47881/1 "2021-04-13T22:47:22Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
Hello everyone, we are trying to create a conference from a web page that we are developing, when trying to obtain the access token, we have problems since it is not possible to obtain it through the api specified for that, and not through the tool that is shown in the documentation of each api.

**Error**  
Invalid redirect: [https://marketplace.zoom.us/docs/oauth/callback/success](https://marketplace.zoom.us/docs/oauth/callback/success) (4,700)

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
/oauth/token

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**  
Api.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/3/a372e2d41f10e7e1e953af5f9c5dd9173ac6ff25.png)

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 14, 2021, 2:48pm UTC](https://devforum.zoom.us/t/failed-to-get-an-access-token/47881/2 "2021-04-14T14:48:02Z")

</div>

Hi @ricardo.cadena1991,

It should be possible to retrieve an access\_token via API.

After you’ve installed the OAuth App locally, it will take you to your redirect URL and a `code` parameter will be appended in the browser URL (this is a manual step).

Once you have that code, you need to send a request to our OAuth endpoint following this format:  
`https://zoom.us/oauth/token?grant_type=authorization_code&code={code}&redirect_uri={redirectUri}`

Can you ensure you’re following the steps outlined [here](https://marketplace.zoom.us/docs/guides/auth/oauth)? Please also double check you’re passing the grant\_type parameter above.

Thanks!  
Will

---

<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:** [May 15, 2021, 12:48am UTC](https://devforum.zoom.us/t/failed-to-get-an-access-token/47881/3 "2021-05-15T00:48:10Z")

</div>

Closed on May 15, 2021, 12:48am UTC

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