# Twilio Zoom Migration, Session Join Error {type: 'JOIN\_MEETING\_FAILED', reason: 'This account does not exist or does not belong to you', errorCode: 200}

**URL:** <https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701>\
**Category:** Twilio Migration\
**Tags:** video-sdk\
**Created:** [December 7, 2023, 6:42am UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701 "2023-12-07T06:42:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![borismiffy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/borismiffy/32/50470_2.png) [@borismiffy](https://devforum.zoom.us/u/borismiffy)\
**Post date:** [December 7, 2023, 6:42am UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/1 "2023-12-07T06:42:12Z")

</div>

**{type: ‘JOIN\_MEETING\_FAILED’, reason: ‘This account does not exist or does not belong to you’, errorCode: 200}**

We’re migrating from Twilio Video to the Zoom Video SDK and are running into the error above when trying to join a session. We’ve built a Video SDK and used the SDK key and secret in our backend, we’ve taken the code from here: [GitHub - zoom/videosdk-auth-endpoint-sample: Generate a Video SDK JWT to join Zoom Video SDK sessions with the Video SDK.](https://github.com/zoom/videosdk-auth-endpoint-sample).

To connect/create a session we’re using the following code:

```auto
  const getAccessToken = async () => {
    const payload = {
      sessionName: "sessionName123",
      role: "0",
      userIdentity: "userName",
      sessionKey: "your_session_key",
      // geoRegions: "JP",
      // cloudRecordingOption: "your_cloud_recording_option",
      // cloudRecordingElection: "your_cloud_recording_election",
    };
    try {
      const response = await axios.post(
        `${import.meta.env.VITE_ENDPOINT}/token`,
        payload
      );

      return response.data;
    } catch (error) {
      console.error("Error fetching access token:", error);
      throw error;
    }
  };

await getAccessToken().then((result) => {
      accessToken.value = result.signature;
    });

 let zoomVideo = ZoomVideo.createClient();
    let zoomSession;
    await zoomVideo.init("jp-JA", "Global", { patchJsMedia: true });

    await zoomVideo
      .join(
        "sessionName123",
        accessToken.value,
        "userName"
        // "passcode" //session
      )
      .catch((e) => {
        console.log(e);
      });

    zoomSession = zoomVideo.getMediaStream();

```

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [December 7, 2023, 1:13pm UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/2 "2023-12-07T13:13:19Z")

</div>

Hi there 👋

This error is typically the result of using credentials not intended for the Video SDK. Can you verify that you have followed these steps to create a Video SDK account (separate from your regular Zoom account) here → [Video SDK - Get credentials](https://developers.zoom.us/docs/video-sdk/get-credentials/)

If you’ve done this already, be sure you are grabbing the SDK Key and SDK Secret, and not the API Key and API Secret. Let me know if this helps, or if you are still stuck.

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [December 7, 2023, 1:45pm UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/3 "2023-12-07T13:45:13Z")

</div>

Also - try changing `role: "0"` to `role: 0` or `role:1`. That may also correct the issue if the credentials are correct. Role is a number type, not a string. [Video SDK - Authorize](https://developers.zoom.us/docs/video-sdk/auth/#payload)

---

<div class="post-metadata">

**Author:** ![muhammad.zubair](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@muhammad.zubair](https://devforum.zoom.us/u/muhammad.zubair)\
**Post date:** [February 16, 2024, 10:59am UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/4 "2024-02-16T10:59:28Z")

</div>

Hello,  
I am facing the same issue.  
I signed up using “Free Sign Up” option and then created an app using “Build App” option.

```auto
// Server Side Code
import jwt from "jsonwebtoken";
export function createZoomVideoAccessToken(identity: string, room: string, isHost?: boolean) {
  const iat = Math.round(new Date().getTime() / 1000) - 30;
  const exp = iat + 60 * 60 * 2;
  const oHeader = { alg: "HS256", typ: "JWT" };

  const oPayload = {
    app_key: ZOOM_APP_CLIENT_ID,
    tpc: room,
    role_type: isHost ? 1 : 0,
    user_identity: identity,
    version: 1,
    iat,
    exp,
  };

  const sdkJWT = jwt.sign(oPayload, ZOOM_APP_SECRET, { header: oHeader });

  return sdkJWT;
}

//Client Side Code
const zoomVideo = ZoomVideo.createClient();
await zoomVideo.init("en-US", "Global", { patchJsMedia: true });
await zoomVideo.join(room, accessToken, auth.user.fullName);

```

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 20, 2024, 4:56am UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/5 "2024-02-20T04:56:32Z")

</div>

Hey @muhammad.zubair ,

Double check you are using a Video SDK account and Video SDK credentials.

> **[Video SDK - Get credentials](https://developers.zoom.us/docs/video-sdk/get-credentials/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Best,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.zubair](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@muhammad.zubair](https://devforum.zoom.us/u/muhammad.zubair)\
**Post date:** [February 20, 2024, 7:41am UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/6 "2024-02-20T07:41:26Z")

</div>

Is there any way to get free credentials for video sdk? Since we are migrating from Twilio so 1st we need to show a POC with Zoom to management.  
If they will approve it then will purchase a premium plan.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 20, 2024, 4:41pm UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/7 "2024-02-20T16:41:14Z")

</div>

Hey @muhammad.zubair ,

Of course, you get 10K free minutes a month. You can sign up here: [Plans & Pricing for Developer | Zoom - Zoom](https://zoom.us/pricing/developer)

Best,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.zubair](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@muhammad.zubair](https://devforum.zoom.us/u/muhammad.zubair)\
**Post date:** [February 21, 2024, 6:27am UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/8 "2024-02-21T06:27:34Z")

</div>

Hello Tommy,  
I’ve already signed up from same link using “Free Sign Up” option but that way I do not see any option to create “Video SDK App” under Develop menu of marketplace page.  
There is simple options;  
**Build App** (there is no SDK KEY & SDK SECRET in such apps but it show CLIENT KEY & CLIENT SECRET which did not work)  
**Build Legacy App**

If I choose Buy SDK option, it redirects to payment steps which I do not want at this moment.

How can I get Video SDK Key & Secret without payment step?

---

<div class="post-metadata">

**Author:** ![muhammad.zubair](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@muhammad.zubair](https://devforum.zoom.us/u/muhammad.zubair)\
**Post date:** [February 21, 2024, 6:37am UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/9 "2024-02-21T06:37:12Z")

</div>

Okay, I did procced with payment option and created a new account but still options are same  
**Build App**  
**Build Legacy App**  
I do not see any such option which is mentioned in various guides and docs for creating video sdk app.  
Could you please help me creating correct one?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 21, 2024, 5:25pm UTC](https://devforum.zoom.us/t/twilio-zoom-migration-session-join-error-type-join-meeting-failed-reason-this-account-does-not-exist-or-does-not-belong-to-you-errorcode-200/99701/10 "2024-02-21T17:25:53Z")

</div>

Hey @muhammad.zubair ,

It seems you have created a standard Zoom user account still. You must create a Video SDK account, here are more detailed steps: [Video SDK - Get credentials - Zoom Developers](https://developers.zoom.us/docs/video-sdk/get-credentials/)

I am happy to walk you through it over a meeting

Best,  
Tommy
