Zoom refresh token API not working

I want to refresh the access_token by using the refresh_token but I only ended up getting this error "reason": "Invalid Token!", "error": "invalid_request"

I am using the exact refresh_token I got by the time I get the access token given by my redirect zoom redirect URI.

"reason": "Invalid Token!", "error": "invalid_request"

Which App Type (OAuth / Chatbot / JWT / Webhook)?
I am using OAuth

Which Endpoint/s?

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

request URL = https://zoom.us/oauth/token?

Exact code using PHP / Laravel Framework

$url = 'https://zoom.us/oauth/token?';
$client_id = '********************************';
$client_secret = '*****************************';

$param = array(
    'grant_type' => 'refresh_token',
     //refresh_token is coming from the request
    'refresh_token' => $request->refresh_token,

$headers = array(
    "Authorization: Basic ". base64_encode($client_id.":".$client_secret),
    "content-type: application/json"

$params = http_build_query($param);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url.$params);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

return response()->json($result);`

Screenshots (If applicable)

Additional Info
Note that I tried immediately the refresh token right after I got the access_token. Can someone tell me why this is happening?

Hey @ronald.b,

I think you had a copy / paste error.

All the refresh tokens start with an e.

Double check you are pasting in the full refresh token and try again. :slight_smile: