# Unsupported\_grant\_type while refresh token

**URL:** <https://devforum.zoom.us/t/unsupported-grant-type-while-refresh-token/85925>\
**Category:** Meetings\
**Tags:** api\
**Created:** [April 3, 2023, 1:45pm UTC](https://devforum.zoom.us/t/unsupported-grant-type-while-refresh-token/85925 "2023-04-03T13:45:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandan.zeroit](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chandan.zeroit](https://devforum.zoom.us/u/chandan.zeroit)\
**Post date:** [April 3, 2023, 1:45pm UTC](https://devforum.zoom.us/t/unsupported-grant-type-while-refresh-token/85925/1 "2023-04-03T13:45:31Z")

</div>

\<?php require\_once 'config.php'; function get\_data\_refresh\_token\_post\_api($token\_key='ZGFDS',$post\_field=""){ $curl = curl\_init(); curl\_setopt\_array($curl, array( CURLOPT\_URL =\> "https://zoom.us/oauth/token", CURLOPT\_RETURNTRANSFER =\> true, CURLOPT\_ENCODING =\> "", CURLOPT\_MAXREDIRS =\> 10, CURLOPT\_TIMEOUT =\> 30, CURLOPT\_SSL\_VERIFYHOST =\> false, CURLOPT\_SSL\_VERIFYPEER =\> false, CURLOPT\_HTTP\_VERSION =\> CURL\_HTTP\_VERSION\_1\_1, CURLOPT\_CUSTOMREQUEST =\>'POST', CURLOPT\_POSTFIELDS =\>$post\_field, CURLOPT\_HTTPHEADER =\> array( "Host: zoom.us", "Authorization: Basic ".$token\_key, "Content-Type: application/x-www-form-urlencoded", ), )); $response = curl\_exec($curl); $err = curl\_error($curl); return $response; } $refresh\_token="refresh token"; $filedarra=array( 'refresh\_token'=\>$refresh\_token, 'grant\_type'=\>'refresh\_token', ); $basic = base64\_encode(CLIENT\_ID.':'.CLIENT\_SECRET); echo get\_data\_refresh\_token\_post\_api($basic,$filedarra);

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 3, 2023, 7:01pm UTC](https://devforum.zoom.us/t/unsupported-grant-type-while-refresh-token/85925/2 "2023-04-03T19:01:39Z")

</div>

@chandan.zeroit,  
Thank you for posting in the Zoom Developer Forum! To begin, can you share the following information :

API Endpoint

Description

Which Android Meeting SDK version?

Error?

How To Reproduce:

Troubleshooting Routes

Additional context:  
Any additional information you can give us such as screenshots or screen recording:

This information will help us provide a more personalized response.
