# 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/60745>\
**Category:** Android\
**Created:** [November 26, 2021, 11:03am UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60745 "2021-11-26T11:03:43Z")\
**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, 11:03am UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60745/1 "2021-11-26T11:03:43Z")

</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) {

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:07pm UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60745/2 "2021-11-29T18:07:40Z")

</div>

Closing, as this is a duplicate of [another topic](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60734/3). Please avoid posting the same content multiple times as it can make the forum more difficult to navigate for other users. See our [FAQ page](https://devforum.zoom.us/faq) for more information. 🙂

---

<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:07pm UTC](https://devforum.zoom.us/t/how-to-join-meeting-as-host-for-created-meeting-from-api/60745/3 "2021-11-29T18:07:43Z")

</div>

Closed on November 29, 2021, 6:07pm UTC


