# \# Zoom Meeting SDK JavaScript sample question

**URL:** <https://devforum.zoom.us/t/zoom-meeting-sdk-javascript-sample-question/103524>\
**Category:** Meeting SDK\
**Created:** [February 9, 2024, 4:29am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-javascript-sample-question/103524 "2024-02-09T04:29:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![develop-your-dreams](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@develop-your-dreams](https://devforum.zoom.us/u/develop-your-dreams)\
**Post date:** [February 9, 2024, 4:29am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-javascript-sample-question/103524/1 "2024-02-09T04:29:30Z")

</div>

So I reviewed the javascript app and changed it up a bit.

I have this code htere

```auto
  getSignature() {
    var signature = ''
    var meetNum = ' **** 1885'
    var client_id = " *********** 35oQ";
    var client_sdk = " ****** 96Y1y";

    var signature = ZoomMtg.generateSDKSignature({
      meetingNumber: meetNum,
      sdkKey: client_id,
      sdkSecret: client_sdk,
      role: '0',
      success: function (res) {
        console.log(res);
        signature = res;
      },
    });

    this.startMeeting(signature, meetNum, client_sdk, 'User name' )
  }

```

which then hits

```auto
  startMeeting(signature, meetingNumber, sdkKey, userName) {

    ZoomMtg.prepareWebSDK()

    document.getElementById('zmmtg-root').style.display = 'block'

    var leaveUrl = 'https://zoom.us'

    ZoomMtg.init({
      leaveUrl: leaveUrl,
      patchJsMedia: true,
      success: (success) => {
        console.log(success)
        ZoomMtg.join({
          signature: signature,
          sdkKey: sdkKey,
          meetingNumber: meetingNumber,
          passWord: '',
          userName: userName,
          userEmail: '',
          tk: '',
          zak: '',
          success: (success) => {
            console.log(success)
          },
          error: (error) => {
            console.log(error)
          },
        })
      },
      error: (error) => {
        console.log(error)
      }
    })
  }

```

and then receive this error

```auto
{
    "method": "join",
    "status": false,
    "result": "Invalid sdkkey.",
    "errorCode": 1,
    "errorMessage": "Fail to join the meeting."
}

```

Why is my sdkkey invalid … I retrieved from my General app 806, which you can see has the client id and sdk key as well which I’ve added.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 13, 2024, 4:28am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-javascript-sample-question/103524/2 "2024-02-13T04:28:11Z")

</div>

@develop-your-dreams  
client\_id should be the Client ID in the Screenshot  
client\_sdk should be the Client SDK in the Screenshot

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/b/0b022129b4223aa20463bb9e8933f5488aea8f12.png)

In addition, you need to make sure that in the embed menu, meeting SDK toggle button is turned on

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/c/1c4a71b3e08f49fe61db4248ae53be26b6ae807a.png)

Let me know if you still have any issues, and tag me in your response
