Getting error code 124 message Invalid access token

Using this template helps us debug your issues more effectively :slight_smile:

Description
I have created JWT API Key and Api secret in zoom marketplace but when i use it with my code its showing this error [code] => 124 [message] => Invalid access token.

Error

[code] => 124 [message] => Invalid access token.

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
JWT
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
function createmeeting($data = null,$zid = null){
$curl = curl_init();

curl_setopt_array($curl, array(
	CURLOPT_URL => "https://api.zoom.us/v2/users/".$zid."/meetings",
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_ENCODING => "",
	CURLOPT_MAXREDIRS => 10,
	CURLOPT_TIMEOUT => 30,
	CURLOPT_SSL_VERIFYPEER => false,
	CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
	CURLOPT_CUSTOMREQUEST => "POST",
	CURLOPT_POSTFIELDS => $data,
	CURLOPT_HTTPHEADER => array(
	"authorization: Bearer . getZoomAccessToken(),
	"content-type: application/json"
	),
));

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

  1. Request URL / Headers (without credentials) / Body
  2. See error

Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Hi @jeya,

Have you tested the request in Postman? Hereโ€™s how to get set up in Postman to make a request with JWT credentials:

If it works, can you please reference these posts?
https://devforum.zoom.us/search?q=invalid%20access%20token

Thanks,
Gianni

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.