# Invalid redirect 4,700

**URL:** <https://devforum.zoom.us/t/invalid-redirect-4-700/85627>\
**Category:** API and Webhooks\
**Created:** [March 29, 2023, 7:55pm UTC](https://devforum.zoom.us/t/invalid-redirect-4-700/85627 "2023-03-29T19:55:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jared.millman](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jared.millman](https://devforum.zoom.us/u/jared.millman)\
**Post date:** [March 29, 2023, 7:55pm UTC](https://devforum.zoom.us/t/invalid-redirect-4-700/85627/1 "2023-03-29T19:55:44Z")

</div>

I am trying to convert my app from jwt to OAuth. I am really confused with the settings. The jwt only has a few fields.

I tried to create a Server-to-Server OAuth connection. I tried entering a the same url for the redirect as well as the allowed list. I am getting a 4,700 invalid redirect error.

1. Why is there a redirect in the first place? This is supposed to be a post call to get an authentication token. We don’t have a redirect.
2. With our without a redirect, how do I get this to work? I added a valid url.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [March 30, 2023, 3:51am UTC](https://devforum.zoom.us/t/invalid-redirect-4-700/85627/2 "2023-03-30T03:51:42Z")

</div>

Hi @jared.millman ,

You dont need a redirect URL for server to server OAuth.

To generate a token using s2s app, make a post request to the Zoom OAuth Endpoint.

Here is how to make the request to the OAuth endpoint:

```auto
curl --location --request POST ‘https://zoom.us/oauth/token?grant_type=account_credentials&account_id=’
–header ‘Authorization: Basic (Base64 encode clientID:clientsecret)’ \

```

---

<div class="post-metadata">

**Author:** ![jared.millman](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jared.millman](https://devforum.zoom.us/u/jared.millman)\
**Post date:** [March 30, 2023, 1:00pm UTC](https://devforum.zoom.us/t/invalid-redirect-4-700/85627/4 "2023-03-30T13:00:09Z")

</div>

I wasn’t using server to server

---

<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:** [April 2, 2024, 4:36am UTC](https://devforum.zoom.us/t/invalid-redirect-4-700/85627/5 "2024-04-02T04:36:37Z")

</div>

Closed on April 2, 2024, 4:36am UTC

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