# I send a request to /oauth/token but get the Invalid Grant error

**URL:** <https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134>\
**Category:** Reports and Dashboards\
**Created:** [April 20, 2023, 9:34pm UTC](https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134 "2023-04-20T21:34:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pafastudio](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pafastudio/32/47810_2.png) [@pafastudio](https://devforum.zoom.us/u/pafastudio)\
**Post date:** [April 20, 2023, 9:34pm UTC](https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134/1 "2023-04-20T21:34:24Z")

</div>

I send a request to /oauth/token but get the Invalid Grant error.

```auto
$response = $client->request('POST', '/oauth/token', [
            "headers" => [
                "Authorization" => "Basic ". base64_encode('Client ID'.':'.'Client secret')
            ],
            'form_params' => [
                "grant_type" => "authorization_code",
                "code" => $request['code'],
                "redirect_uri" => 'my link'
            ],
        ]);

```

I used the Development credentials  
Help me

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 21, 2023, 1:00am UTC](https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134/2 "2023-04-21T01:00:32Z")

</div>

Hi @pafastudio ,

Can you please confirm you’ve done all the steps outlined in the docs? Please try putting your credentials in our pre-populated Postman workspace: [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/folder/22097587-bff3e463-5c69-4988-b2e7-ea1595d07980?ctx=documentation)

Make sure your redirect uri is on the App Credentials development “Allow List” as well.

---

<div class="post-metadata">

**Author:** ![pafastudio](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pafastudio/32/47810_2.png) [@pafastudio](https://devforum.zoom.us/u/pafastudio)\
**Post date:** [April 21, 2023, 7:52am UTC](https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134/4 "2023-04-21T07:52:09Z")

</div>

The url address is in the white letter. I send the authorize request and everything is fine

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 9, 2023, 12:21am UTC](https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134/5 "2023-05-09T00:21:15Z")

</div>

Hi @pafastudio , are you saying everything is working as expected now?

---

<div class="post-metadata">

**Author:** ![pafastudio](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pafastudio/32/47810_2.png) [@pafastudio](https://devforum.zoom.us/u/pafastudio)\
**Post date:** [May 9, 2023, 5:20am UTC](https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134/6 "2023-05-09T05:20:13Z")

</div>

Yes, everything works great.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 11, 2023, 12:11am UTC](https://devforum.zoom.us/t/i-send-a-request-to-oauth-token-but-get-the-invalid-grant-error/87134/7 "2023-05-11T00:11:57Z")

</div>

Amazing! Thanks for using the platform and all the best.
