# Passcode creation for meetings

**URL:** <https://devforum.zoom.us/t/passcode-creation-for-meetings/79639>\
**Category:** Web\
**Created:** [December 2, 2022, 6:53am UTC](https://devforum.zoom.us/t/passcode-creation-for-meetings/79639 "2022-12-02T06:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshayshrivastava170](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/akshayshrivastava170/32/43361_2.png) [@akshayshrivastava170](https://devforum.zoom.us/u/akshayshrivastava170)\
**Post date:** [December 2, 2022, 6:53am UTC](https://devforum.zoom.us/t/passcode-creation-for-meetings/79639/1 "2022-12-02T06:53:30Z")

</div>

can we provide our own passcode while creating meeting from zoom api

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 2, 2022, 2:57pm UTC](https://devforum.zoom.us/t/passcode-creation-for-meetings/79639/2 "2022-12-02T14:57:18Z")

</div>

@akshayshrivastava170,

Yes, it is possible to create your own passcode while creating a meeting from the Zoom API. The password must be at least 6 characters long and at least 1 number. Here is a code snippet you can consider for generating a one-time password.

```auto
function generatedOTP(){
const optLength = 6; // Ajust this value for OTP length
let opt = "";

for(let i=0; i < otpLength; i++) {
otp +=Math.floor(Math.random()*9)

}
return otp;
}

```

---

<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 2, 2023, 12:57am UTC](https://devforum.zoom.us/t/passcode-creation-for-meetings/79639/3 "2023-01-02T00:57:51Z")

</div>

Closed on January 2, 2023, 12:57am UTC

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