# How to validate a meetingId before joining?

**URL:** <https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979>\
**Category:** Android\
**Created:** [July 2, 2020, 4:44am UTC](https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979 "2020-07-02T04:44:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmineakkal0316](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jasmineakkal0316](https://devforum.zoom.us/u/jasmineakkal0316)\
**Post date:** [July 2, 2020, 4:44am UTC](https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979/1 "2020-07-02T04:44:25Z")

</div>

**Description**  
I am using the latest zoom Android SDK. Do you know if there’s a way to check if the meetingId I am putting is valid or not before calling `ZoomSDK.getInstance().getMeetingService().joinMeetingWithParams(this, params, opts)`? What’s happening is I am putting a random/invalid meetingId and zoom tries to join that and fails and falls back to onMeetingFail in MyMeetingActivity.java  
@Override  
public void onMeetingFail(int errorCode, int internalErrorCode) {  
mMeetingFailed = true;  
mMeetingVideoView.setVisibility(View.GONE);  
mConnectingText.setVisibility(View.GONE);  
showJoinFailDialog(errorCode);  
}

Is there a way to check if the meetingId I am going to pass to joinMeetingWithParams is valid or not? If that meetingId exists or not?

---

<div class="post-metadata">

**Author:** ![jasmineakkal0316](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jasmineakkal0316](https://devforum.zoom.us/u/jasmineakkal0316)\
**Post date:** [July 3, 2020, 7:38am UTC](https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979/2 "2020-07-03T07:38:45Z")

</div>

Hi,

Any update on this? Kind of blocked on an important use case?

Thanks  
Jasmine

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 3, 2020, 8:11am UTC](https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979/3 "2020-07-03T08:11:28Z")

</div>

Hi @jasmineakkal0316,

There is no SDK interface to check whether a meeting exists or not. You may use Zoom API [https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting) to try to get a meeting. If it returns 404, then it means the meeting ID is invalid. (Note: It has rate limit so do not call this too frequent)

Thanks!

---

<div class="post-metadata">

**Author:** ![jasmineakkal0316](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jasmineakkal0316](https://devforum.zoom.us/u/jasmineakkal0316)\
**Post date:** [July 4, 2020, 8:23pm UTC](https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979/4 "2020-07-04T20:23:53Z")

</div>

Hi Carson,

Thanks for writing this to me. Could you point me to any code reference where it is being used? I am not quite sure how I can call this from my android sdk.  
Looking forward to your response.

Thanks,  
Jasmine

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 8, 2020, 7:36am UTC](https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979/5 "2020-07-08T07:36:11Z")

</div>

Hi Jasmine,

Thanks for the reply. If you would like to use the Zoom API, it will be a regular HTTP request send to the Zoom RestFul API. It will be the same process as the way you are getting ZAK. You may either refer to the sample here to send an HTTP request in Android([https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/start-join-meeting/api-user/authentication](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/start-join-meeting/api-user/authentication)) or you may follow the instruction here to setup API call([https://marketplace.zoom.us/docs/api-reference/using-zoom-apis](https://marketplace.zoom.us/docs/api-reference/using-zoom-apis)).

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:36pm UTC](https://devforum.zoom.us/t/how-to-validate-a-meetingid-before-joining/22979/6 "2020-08-21T22:36:56Z")

</div>

Closed on August 21, 2020, 10:36pm UTC


