Create Meeting in laravel

Create meeting API is sending response (laravel php application)

GuzzleHttp\Exception\ClientException: Client error: POST resulted in a 401 Unauthorized response:
{“code”:124,“message”:“Invalid access token.”}

Following is my code snippets:
Create Zoom Token:
$key = env(‘ZOOM_API_KEY’, ‘’);
$secret = env(‘ZOOM_API_SECRET’, ‘’);
$payload = [
‘iss’ => $key,
‘exp’ => strtotime(‘+1 minute’),

    return \Firebase\JWT\JWT::encode($payload, $secret, 'HS256');

and using the zoom token as Bearer to send a post request for create meeting.