# Getting missing grant type while refresh token

**URL:** <https://devforum.zoom.us/t/getting-missing-grant-type-while-refresh-token/10548>\
**Category:** API and Webhooks\
**Created:** [April 1, 2020, 8:39pm UTC](https://devforum.zoom.us/t/getting-missing-grant-type-while-refresh-token/10548 "2020-04-01T20:39:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachinm](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sachinm/32/3598_2.png) [@sachinm](https://devforum.zoom.us/u/sachinm)\
**Post date:** [April 1, 2020, 8:39pm UTC](https://devforum.zoom.us/t/getting-missing-grant-type-while-refresh-token/10548/1 "2020-04-01T20:39:16Z")

</div>

Hi  
I am trying to refresh oauth token via curl/python. But getting 400 and weird error. Below is the mentioned curl command that i have been trying.

curl --request POST   
–url [https://zoom.us/oauth/token](https://zoom.us/oauth/token)   
–header ‘Authorization: Basic {base64encoded(client\_id:client\_secret)}’   
–data ‘{“grant\_type”:“refresh\_token”,“refresh\_token”:"{refresh token}"}’

result that i am getting

{“reason”:“Missing grant type”,“error”:“invalid\_request”}

Help please.

Thanks,  
Sachin

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 2, 2020, 8:02am UTC](https://devforum.zoom.us/t/getting-missing-grant-type-while-refresh-token/10548/2 "2020-04-02T08:02:14Z")

</div>

Hey @sachinm,

You are sending the grant type in the body instead of the query param. 🙂

It should be changed to this:

```json
https://zoom.us/oauth/token?grant_type=refresh_token&refresh_token=eyJhbGciOiJIUzUxMiIsInYiOiIyLjAiLCJraWQiOiI8S0lEPiJ9.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiI8Q2xpZW50X0lEPiIsImNvZGUiOiI8Q29kZT4iLCJpc3MiOiJ1cm46em9vbTpjb25uZWN0OmNsaWVudGlkOjxDbGllbnRfSUQ-IiwiYXV0aGVudGljYXRpb25JZCI6IjxBdXRoZW50aWNhdGlvbl9JRD4iLCJ1c2VySWQiOiI8VXNlcl9JRD4iLCJncm91cE51bWJlciI6MCwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwiYWNjb3VudElkIjoiPEFjY291bnRfSUQ-IiwibmJmIjoxNTgwMTQ2OTkzLCJleHAiOjIwNTMxODY5OTMsInRva2VuVHlwZSI6InJlZnJlc2hfdG9rZW4iLCJpYXQiOjE1ODAxNDY5OTMsImp0aSI6IjxKVEk-IiwidG9sZXJhbmNlSWQiOjI1fQ.Xcn_1i_tE6n-wy6_-3JZArIEbiP4AS3paSD0hzb0OZwvYSf-iebQBr0Nucupe57HUDB5NfR9VuyvQ3b74qZAfA

```

Please see our docs here on how to properly form a refresh url:

[https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:17pm UTC](https://devforum.zoom.us/t/getting-missing-grant-type-while-refresh-token/10548/3 "2020-08-21T20:17:38Z")

</div>

Closed on August 21, 2020, 8:17pm UTC


