# OAuth and Register User for Webinar via custom webform

**URL:** <https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624>\
**Category:** API and Webhooks\
**Created:** [April 22, 2021, 2:11pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624 "2021-04-22T14:11:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.post](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@chris.post](https://devforum.zoom.us/u/chris.post)\
**Post date:** [April 22, 2021, 2:11pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/1 "2021-04-22T14:11:51Z")

</div>

Hi,  
I’m trying to understand the flow I need to implement in order to register a user for a webinar via a bespoke form on a website. I understand that I need to use the following endpoint

> **[Add meeting registrant - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate)**
>
> Register a participant for a meeting.
> 
> Prerequisite:
> 
> Host user type must be "Licensed".
> 
> Scopes: meeting:write:admin meeting:write
> Rate Limit Label: L...

and in order to do this I must first obtain an access token via oauth.

I’m currently using a GET request with the following endpoint to obtain my code so I can request an access token

[https://zoom.us/oauth/authorize?response\_type=code&client\_id=x&redirect\_uri=y](https://zoom.us/oauth/authorize?response_type=code&client_id=x&redirect_uri=y)  
however, by this approach I’m redirected to a login screen.

Also the login screen sits on my redirect uri and appears to be broken given the captcha error.

![Screenshot 2021-04-22 at 15.28.31](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/a/2a883d69724a3b54d06b64c0d7e7a1dd5f39153d.png)

If I select to login via Google I’m redirected to what appears to be a zoom url on my own website domain which returns a 404

mydomain/oauth/google\_login?client\_id=x&response\_type=code&redirect\_uri=y

What I’m looking for is an approach where I can go by the following steps without the need for a user to login to a zoom account.

1. user completes webform (name/surname/email)
2. form data is posted to webserver
3. access token is requested
4. user data is posted to API to register for webinar
5. user redirected to success page

Can you let me know if this flow is possible and if so what is it I’m doing wrong that I’m redirected to a login page

Thanks!  
Chris

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 23, 2021, 4:00pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/2 "2021-04-23T16:00:22Z")

</div>

Hi @chris.post,

Thanks for reaching out about this, and happy to help.

First, I should clarify—are you interested in registering users for webinars under an account you manage? Or, are you trying to create functionality for Zoom users to be able to register participant to their own webinars using your integration?

If it’s the first, I might actually recommend using JWT authorization, as this is server-to-server and doesn’t require any end-user auth directly:

> **[JSON Web Tokens (JWT) - Build an App - Documentation](https://marketplace.zoom.us/docs/guides/build/jwt-app)**
>
> Create a JWT App
> 
> JSON Web Tokens are strings of text which are passed on every request to verify the authorization of the server. They contain a combin...

You could use your JWT credentials to authenticate requests to the add webinar registrants endpoint directly:

> **[JSON Web Tokens (JWT) - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/jwt)**
>
> JWT With Zoom
> 
> The Zoom API uses JSON Web Tokens (JWT) to authenticate account-level access. These tokens offer a method to establish secure server-to-s...

Let me know if this might be more helpful for your use case!

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![chris.post](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@chris.post](https://devforum.zoom.us/u/chris.post)\
**Post date:** [April 26, 2021, 1:03pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/3 "2021-04-26T13:03:15Z")

</div>

Hi Will,  
thanks for your reply. I’ve got the JWT app set up and its generating the token successfully for me so thanks for that! What I’m seeing now is that I get a ‘ **Meeting does not exist** ’ error when trying to post first\_name/last\_name/email to the following endpoint  
[https://api.zoom.us/v2/meetings/’.$webinarid.’/registrants](https://api.zoom.us/v2/meetings/'.%24webinarid.'/registrants)  
where $webinarid is the id of the meeting I’m trying to register users on.  
Perhaps a stupid question but it is required that my app on the Zoom app marketplace is created on the same account on which the webinar has been created?  
Thanks!

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 27, 2021, 4:35pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/4 "2021-04-27T16:35:48Z")

</div>

Hey @chris.post,

Thanks for sharing these details. To clarify, the credentials you’re using to authenticate your call must be associated with the account under which the Webinar was created. Can you confirm if this is the case? You won’t be able to register participants to a webinar that you don’t own.

Let me know if this helps to clarify,  
Will

---

<div class="post-metadata">

**Author:** ![chris.post](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@chris.post](https://devforum.zoom.us/u/chris.post)\
**Post date:** [April 27, 2021, 4:49pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/5 "2021-04-27T16:49:08Z")

</div>

Thanks for the reply Will! I guessed as much, I’ll contact the user who’s webinar I’m connecting in order to have the app created on their account 🙂

---

<div class="post-metadata">

**Author:** ![chris.post](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@chris.post](https://devforum.zoom.us/u/chris.post)\
**Post date:** [April 28, 2021, 3:16pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/6 "2021-04-28T15:16:50Z")

</div>

Hi Will,  
I’ve resolved the issue with the account and I’m now working with a JWT app on the same account where the webinar has been created. However, when trying to register participants using the following endpoint its returning an error

POST # /meetings/{meetingId}/registrants

{“code”:404,“message”:“Registration has not been enabled for this meeting: xxxxxxxxx.”}

I’m not seeing any option in the Webinar itself to enable registration, and I can still register using the link provided on the webinar details

Thanks!

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 28, 2021, 8:00pm UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/7 "2021-04-28T20:00:32Z")

</div>

Hey @chris.post,

I’m glad to hear that Will was able to help get you set up with JWT! It sounds like you’re trying to add a registrant to a webinar but using the API for meetings.

Try using the [Add Webinar Registrant API](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate) which uses the following endpoint:

**POST /webinars/{webinarId}/registrants**

Let us know if that works for you.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![chris.post](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@chris.post](https://devforum.zoom.us/u/chris.post)\
**Post date:** [April 29, 2021, 7:44am UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/8 "2021-04-29T07:44:08Z")

</div>

Ah that was a silly error, thanks for letting me now, all is working now 🙂

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 30, 2021, 12:54am UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/9 "2021-04-30T00:54:36Z")

</div>

Greeting, @chris.post,  
Great to hear Will and Max was able to help. We appreciate you allowing us to provide support. Should you have any additional questions or comments, please let us know.

Best,  
Donte

---

<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:** [May 30, 2021, 10:55am UTC](https://devforum.zoom.us/t/oauth-and-register-user-for-webinar-via-custom-webform/48624/10 "2021-05-30T10:55:28Z")

</div>

Closed on May 30, 2021, 10:55am UTC

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