# Getting error code 124 message Invalid access token

**URL:** https://devforum.zoom.us/t/getting-error-code-124-message-invalid-access-token/64494
**Category:** API and Webhooks
**Created:** [February 18, 2022, 3:48am UTC](https://devforum.zoom.us/t/getting-error-code-124-message-invalid-access-token/64494 "2022-02-18T03:48:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jeya](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jeya](https://devforum.zoom.us/u/jeya)
#### Post date: [February 18, 2022, 3:48am UTC](https://devforum.zoom.us/t/getting-error-code-124-message-invalid-access-token/64494/1 "2022-02-18T03:48:03Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**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.

---

<div class="post-metadata">

### Author: ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)
#### Post date: [February 18, 2022, 9:58pm UTC](https://devforum.zoom.us/t/getting-error-code-124-message-invalid-access-token/64494/2 "2022-02-18T21:58:16Z")

</div>

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](https://marketplace.zoom.us/docs/guides/guides/postman/using-postman-to-test-zoom-apis/make-an-example-api-call-in-postman):

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

Thanks,  
Gianni

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)
#### Post date: [March 21, 2022, 7:59am UTC](https://devforum.zoom.us/t/getting-error-code-124-message-invalid-access-token/64494/3 "2022-03-21T07:59:09Z")

</div>

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