# Where can I find oauth\_access\_token?

**URL:** <https://devforum.zoom.us/t/where-can-i-find-oauth-access-token/9871>\
**Category:** API and Webhooks\
**Created:** [March 27, 2020, 1:27pm UTC](https://devforum.zoom.us/t/where-can-i-find-oauth-access-token/9871 "2020-03-27T13:27:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acquistiict](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@acquistiict](https://devforum.zoom.us/u/acquistiict)\
**Post date:** [March 27, 2020, 1:27pm UTC](https://devforum.zoom.us/t/where-can-i-find-oauth-access-token/9871/1 "2020-03-27T13:27:28Z")

</div>

Hi,  
We need to create an external form that can register users to zoom webinar via API.

In this [page](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate) we don’t understand how to find the **oauth\_access\_token** parameter.  
We’d like to use the simplest way.  
We tried with Oauth app but we don’t understand where is that parameter, and also with JWT, but it doesn’t work.  
Maybe is code bug.  
So, here’s the code:

> //PHP CODE  
> $curl = curl\_init();
> 
> ```
> $data = array("email" => "email, "first_name" => "first name", "last_name" => last name);
> $data_string = json_encode($data);
> 
> curl_setopt_array($curl, array(
> CURLOPT_URL => "https://api.zoom.us/v2/webinars/117-389-454/registrants",
> CURLOPT_RETURNTRANSFER => true,
> CURLOPT_ENCODING => "",
> CURLOPT_MAXREDIRS => 10,
> CURLOPT_TIMEOUT => 30,
> CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
> CURLOPT_CUSTOMREQUEST => "POST",
> CURLOPT_POSTFIELDS => $data_string,
> CURLOPT_HTTPHEADER => array(
> "authorization: Bearer {HOW CAN I GET THIS PARAMETER?}",
> "content-type: multipart/form-data;"
> ),
> ));
> 
> $response = curl_exec($curl);
> $err = curl_error($curl);
> 
> curl_close($curl);
> 
> if ($err) {
> //echo "cURL Error #:" . $err;
> } else {
> //echo $response;
> }
> 
> ```

**Error**  
The error is: **cURL Error #:SSL connect error**

---

<div class="post-metadata">

**Author:** ![bdeanindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bdeanindy/32/154_2.png) [@bdeanindy](https://devforum.zoom.us/u/bdeanindy)\
**Post date:** [March 27, 2020, 9:53pm UTC](https://devforum.zoom.us/t/where-can-i-find-oauth-access-token/9871/2 "2020-03-27T21:53:18Z")

</div>

There are two different approaches to obtaining an `access_token`, each is dependent upon how you’re using the tokens/app:

**JWT APPS**  
If you’re ONLY trying to register users in YOUR OWN Zoom account’s webinars, then I would recommend you use a JWT app, and follow this documentation to get your `access_token`: [https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom). JWT App are ONLY to be used by TRUSTED Backend Systems (never for front-end code or multi-tenant applications).

**OAuth Apps**  
If you’re building an app that you intend to publish on the Zoom Marketplace for other Zoom Customers to install and use with their Zoom accounts, then you would need to build an OAuth2 App: [https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom)

---

<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, 7:39pm UTC](https://devforum.zoom.us/t/where-can-i-find-oauth-access-token/9871/3 "2020-08-21T19:39:01Z")

</div>

Closed on August 21, 2020, 7:39pm UTC


