# Request failed with status code 401

**URL:** <https://devforum.zoom.us/t/request-failed-with-status-code-401/116016>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [August 20, 2024, 11:49pm UTC](https://devforum.zoom.us/t/request-failed-with-status-code-401/116016 "2024-08-20T23:49:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omer6688](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/omer6688/32/62615_2.png) [@omer6688](https://devforum.zoom.us/u/omer6688)\
**Post date:** [August 20, 2024, 11:49pm UTC](https://devforum.zoom.us/t/request-failed-with-status-code-401/116016/1 "2024-08-20T23:49:27Z")

</div>

Hi, i trying to create a new meeting with the api ang i get error 401.  
this is the url- …/v2/users/me/meetings  
I already check and my token is working.  
this is the request if someone will know why it dont work:

const options = {  
method: “POST”,  
url: …/v2/users/me/meetings,  
headers: {  
Authorization: `Bearer ${accessToken}`,  
“Content-Type”: “application/json”,  
},  
data: {  
topic: “Learn how to use the Zoom API”,  
type: 2,  
start\_time: “2024-08-25T16:32:55Z”,  
duration: 60,  
timezone: “Asia/Kolkata”,  
password: “zoom123”,  
agenda: “Learn how to use the Zoom API”,  
whiteboard: true,  
settings: {  
host\_video: true,  
participant\_video: true,  
join\_before\_host: true,  
mute\_upon\_entry: true,  
watermark: false,  
use\_pmi: false,  
waiting\_room: false,  
approval\_type: 2,  
registration\_type: 2,  
audio: “both”,  
auto\_recording: “cloud”,  
enforce\_login: false,  
enforce\_login\_domains: “”,  
alternative\_hosts: “”,  
global\_dial\_in\_countries: ,  
registrants\_email\_notification: true,  
},  
recurrence: {  
type: 1,  
repeat\_interval: 1,  
weekly\_days: “2”,  
end\_times: 10,  
},  
},  
};

thank you 🙂

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 22, 2024, 6:53pm UTC](https://devforum.zoom.us/t/request-failed-with-status-code-401/116016/2 "2024-08-22T18:53:09Z")

</div>

Hi @omer6688  
Thanks for reaching out to us!  
You are passing a recurrence object but the meeting type is 2.  
Try getting rid of the recurrence object if you are not trying to schedule a recurring meeting or change the meeting type to 8 if you are looking to set up a recurring meeting

---

<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:** [August 26, 2025, 10:29am UTC](https://devforum.zoom.us/t/request-failed-with-status-code-401/116016/3 "2025-08-26T10:29:29Z")

</div>

Closed on August 26, 2025, 10:29am UTC

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