# Authenticate a non-logged in or API user

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

> The code on this page works with either the **default UI** or the **custom UI**.

To host or join a scheduled meeting as a non-login user, retrieve these two values from the REST API.

-   **User ID** - pass your email address or retrieve it from the REST API by sending a `GET` request to https://api.zoom.us/v2/users/{userID}.
-   **For individual users, a Zoom Access Key (ZAK)** - send a `GET` request to the https://api.zoom.us/v2/users/{userId}/token with `type="zak"` and pass it to the SDK with [`JoinMeetingParam4WithoutLogin`](https://marketplacefront.zoom.us/sdk/meeting/android/classus_1_1zoom_1_1sdk_1_1_join_meeting_param4_without_login.html)'s [`zoomAccessToken`]() or [`StartMeetingParamsWithoutLogin`](https://marketplacefront.zoom.us/sdk/meeting/android/classus_1_1zoom_1_1sdk_1_1_start_meeting_params_without_login.html)'s [`zoomAccessToken`]().
-   **For apps that need to join the meeting as individual users, an OnBehalf Of (OBF) token** - send a GET request to https://api.zoom.us/v2/users/{userId}/token with type="onbehalf" and pass it to the SDK with JoinMeetingParam4WithoutLogin's onBehalfToken.

undefined

See [SDK Authentication](/docs/meeting-sdk/auth) for more details.

## Access the Zoom API

See [Using Zoom APIs](/docs/api/using-zoom-apis/) to configure your setup and access the Zoom API.

## Get a Zoom Access Key (ZAK) or an OnBehalf Of (OBF) token

Once you have the access to the Meeting API, send a `GET` request to the the https://api.zoom.us/v2/users/{userId}/token with `type = "zak"` to get a ZAK for individual users, or with `type = "onbehalf"` to get an OBF token for apps that need to join the meeting as individual users.

For more information, see the [Users API](/docs/api/users/#tag/users) and [SDK Authentication](/docs/meeting-sdk/auth/).

> Even if the ZAK does expire, DO NOT pass or expose the ZAK token to others after retrieving it.

---
