# Invalid access token error 401

**URL:** <https://devforum.zoom.us/t/invalid-access-token-error-401/37824>\
**Category:** API and Webhooks\
**Created:** [December 7, 2020, 2:30pm UTC](https://devforum.zoom.us/t/invalid-access-token-error-401/37824 "2020-12-07T14:30:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wkhasintha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wkhasintha/32/19812_2.png) [@wkhasintha](https://devforum.zoom.us/u/wkhasintha)\
**Post date:** [December 7, 2020, 2:30pm UTC](https://devforum.zoom.us/t/invalid-access-token-error-401/37824/1 "2020-12-07T14:30:09Z")

</div>

**Description**  
We have a website that takes user account details and create zoom webinar registrations for the same. This works fine most of the time but occassionaly we are getting the below error

_2020-12-05T10:56:31+00:00 INFO RETURN BODY: {“code”:124,“message”:“Invalid access token.”}_  
_2020-12-05T10:56:31+00:00 INFO URL: [https://api.zoom.us/v2/webinars/845495](https://api.zoom.us/v2/webinars/845495)_\*\*/registrants\*  
_2020-12-05T10:56:31+00:00 INFO BODY: {“[first\_name":“jhon”,“last\_name”:“doe”,“email”:"jhond@gmail.com](mailto:first_name%22:%22jhon%22,%22last_name%22:%22doe%22,%22email%22:%22jhond@gmail.com)”,“city”:“Kelaniya”,“country”:“LK”}_  
_2020-12-05T10:56:31+00:00 INFO ACCESS TOKEN: ERROR_  
_2020-12-05T10:56:31+00:00 INFO STATUS: 401_

Please help to debug this issue

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

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

**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:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 8, 2020, 8:23pm UTC](https://devforum.zoom.us/t/invalid-access-token-error-401/37824/2 "2020-12-08T20:23:43Z")

</div>

Hey @wkhasintha,

Thank you for your question and welcome to the developer forum! First, I would check that you meet the prerequisites outlined in the API reference for the [Add a Webinar Registrant](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate) endpoint.

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

If you meet those requirements, I would also check that your code is successfully renewing the token before it expires. Also, if you’re able to share any information about the code that is failing or how you’re making the call that will prove to be helpful in troubleshooting.

I hope that helps, let me know if you have any questions.

Thanks,  
Max

---

<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:** [January 8, 2021, 6:23am UTC](https://devforum.zoom.us/t/invalid-access-token-error-401/37824/3 "2021-01-08T06:23:45Z")

</div>

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