# How to join meeting as host for created meeting from api?

**URL:** <https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60734>\
**Category:** Android\
**Created:** [November 26, 2021, 6:29am UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60734 "2021-11-26T06:29:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fitlifeafrica](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fitlifeafrica/32/24963_2.png) [@fitlifeafrica](https://devforum.zoom.us/u/fitlifeafrica)\
**Post date:** [November 26, 2021, 6:29am UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60734/1 "2021-11-26T06:29:08Z")

</div>

We are using /users/{userId}/meetings API to create meetings and in the API response, we are getting start\_url. Which contains the zak(zoom access token).

and I am using android zoom SDK, to join the created meeting as a host. I am using the below code but I am getting 99 error codes.

Here are the steps on the mobile side.

**1. Initialize the android SDK with appKey and appSecret.**  
public void initializeSdk(Context context) {  
ZoomSDK sdk = ZoomSDK.getInstance();  
// TODO: Do not use hard-coded values for your key/secret in your app in production!  
ZoomSDKInitParams params = new ZoomSDKInitParams();  
params.appKey = “”; //  
params.appSecret = “”; //  
params.domain = “[zoom.us](http://zoom.us)”;  
params.enableLog = true;  
// TODO: Add functionality to this listener (e.g. logs for debugging)  
ZoomSDKInitializeListener listener = new ZoomSDKInitializeListener() {  
/\*\*  
\* @param errorCode {@link us.zoom.sdk.ZoomError#ZOOM\_ERROR\_SUCCESS} if the SDK has been initialized successfully.  
\*/  
@Override  
public void onZoomSDKInitializeResult(int errorCode, int internalErrorCode) {

```
        }

        @Override
        public void onZoomAuthIdentityExpired() { }
    };
    sdk.initialize(context, listener, params);
}

```

**2. Host will log in with his zoom account credentials with zoom android sdk.**  
public void login(String username, String password) {  
int result = ZoomSDK.getInstance().loginWithZoom(username, password);  
if (result == ZoomApiError.ZOOM\_API\_ERROR\_SUCCESS) {  
// Request executed, listen for result to start meeting  
ZoomSDK.getInstance().addAuthenticationListener(authListener);  
}  
}

**3. I am using the below code to join as a host for the created meeting.**

public void startMeeting(Context context) {  
int ret = -1;  
ZoomSDK sdk = ZoomSDK.getInstance();  
if (sdk.isLoggedIn()) {  
MeetingService meetingService = sdk.getMeetingService();

```
    StartMeetingOptions options = new StartMeetingOptions();
    options.no_invite = true;
    options.no_driving_mode = true;
    options.meeting_views_options = MeetingViewsOptions.NO_TEXT_PASSWORD + MeetingViewsOptions.NO_TEXT_MEETING_ID;

    StartMeetingParamsWithoutLogin params = new StartMeetingParamsWithoutLogin();
    params.userId = ""; // Based on this id we are able to start the meeting as host
    params.userType = MeetingService.USER_TYPE_API_USER;
    params.displayName = "";
    params.zoomAccessToken = ""; //getting the zoom access token from start_url
    params.meetingNo = ","; // meetingNo, getting this from create meeting api response
    ret = meetingService.startMeetingWithParams(context,params,options);
    Log.e("Start Meeting As Host", "===startMeetingWithNumber====ret=" + ret);      
}

```

}  
and **I am getting 99 error code.** Please, can you guide us on the above issue?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 29, 2021, 6:06pm UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60734/2 "2021-11-29T18:06:16Z")

</div>

Hi @fitlifeafrica, thanks for the post.

According to our [error code documentation](https://marketplace.zoom.us/docs/sdk/native-sdks/android/resource/error-codes), this error indicates that the device being used is unsupported. If you believe that this is not accurate, please let me know the make/model/Android version of your device and the SDK version you are using so that we can investigate further.

Thanks!

---

<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:** [December 30, 2021, 4:07am UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60734/3 "2021-12-30T04:07:15Z")

</div>

Closed on December 30, 2021, 4:07am UTC

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