# Send a Test Request "message": "Invalid access token."

**URL:** <https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462>\
**Category:** API and Webhooks\
**Tags:** dc, faq\
**Created:** [November 9, 2020, 10:39am UTC](https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462 "2020-11-09T10:39:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vla7737](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vla7737/32/18435_2.png) [@vla7737](https://devforum.zoom.us/u/vla7737)\
**Post date:** [November 9, 2020, 10:39am UTC](https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462/1 "2020-11-09T10:39:57Z")

</div>

**Description**  
Hey. I created an access token, pre-entered client\_id and Client Secret. The token has been successfully created. After that I decided to make a test request . Entered accountId and clicked Send. JSON returned me with error 124. What am I doing wrong?

**Error**  
Invalid access token.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

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

1. [https://api.zoom.us/v2/accounts/{accountId}](https://api.zoom.us/v2/accounts/%7BaccountId%7D)
2. “code”: 124, “message”: “Invalid access token.”

**Screenshots (If applicable)**

> **[Joxi – удобная программа для скриншотов и обмена файлами по сети](http://joxi.net/l2Z51xDI7zgJam)**

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 10, 2020, 7:24pm UTC](https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462/2 "2020-11-10T19:24:13Z")

</div>

Hi @vla7737,

Can you confirm that you meet the prerequisites for this endpoint?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/2/42fa3e2f9ebae8ad20266f7a9a1002f8d17abfca.png)

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![vla7737](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vla7737/32/18435_2.png) [@vla7737](https://devforum.zoom.us/u/vla7737)\
**Post date:** [November 11, 2020, 9:16am UTC](https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462/3 "2020-11-11T09:16:41Z")

</div>

> [@will.zoom](#):
>
> Can you confirm that you meet the prerequisites for this endpoint?

Hey. I figured out, there was a mistake on my part. Now everything is ok. Thank you guys anyway

---

<div class="post-metadata">

**Author:** ![vla7737](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vla7737/32/18435_2.png) [@vla7737](https://devforum.zoom.us/u/vla7737)\
**Post date:** [November 11, 2020, 9:45am UTC](https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462/4 "2020-11-11T09:45:54Z")

</div>

As I understood the access token expires in an hour

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 12, 2020, 4:55pm UTC](https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462/5 "2020-11-12T16:55:20Z")

</div>

Hey @vla7737,

Ah yes, the tokens do expire so you will need to refresh them periodically. Glad you figured it out!

Best,  
Will

---

<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:** [December 13, 2020, 2:55am UTC](https://devforum.zoom.us/t/send-a-test-request-message-invalid-access-token/35462/6 "2020-12-13T02:55:24Z")

</div>

Closed on December 13, 2020, 2:55am UTC

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