# Can I use JWT for these calls?

**URL:** <https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512>\
**Category:** API and Webhooks\
**Created:** [July 18, 2020, 7:04pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512 "2020-07-18T19:04:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hireauthority](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hireauthority/32/38815_2.png) [@hireauthority](https://devforum.zoom.us/u/hireauthority)\
**Post date:** [July 18, 2020, 7:04pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/1 "2020-07-18T19:04:22Z")

</div>

I need to implement the following API calls from our server:  
get /meetings/{meetingId}/registrants  
post /meetings/{meetingId}/registrants  
get /users/{userId}/meetings

I would prefer to use JWT, but docs only mention OAUTH2.  
Can someone confirm whether or not these are in fact limited to OAUTH2?

Thanks and regards…

Gene

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [July 18, 2020, 9:29pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/2 "2020-07-18T21:29:54Z")

</div>

@hireauthority - Hi Gene, yes you can use JWT to authorize any API for users on your account. OAuth should be used for individual user authorization, or if you intend to publish your app publicly.

---

<div class="post-metadata">

**Author:** ![hireauthority](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hireauthority/32/38815_2.png) [@hireauthority](https://devforum.zoom.us/u/hireauthority)\
**Post date:** [July 18, 2020, 10:59pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/3 "2020-07-18T22:59:18Z")

</div>

Thanks Michael. To clarify, we need to register prepaid customers (who may or may not have their own zoom accounts) as attendees in our meetings. These will never be users on our account.

Gene

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [July 19, 2020, 1:02am UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/4 "2020-07-19T01:02:56Z")

</div>

@hireauthority, got it! If the **hosts** of the meetings are users on your account you can use JWT, as the API Key / Secret are an account-wide credential pair (JWTs with the account’s API Key and Secret can authorize requests for any user on the account).

If you are adding a registrant to a meeting, this request is not done on behalf of the registrant but rather the host of the meeting.

JWT should work here, but let us know if you have any additional questions!

---

<div class="post-metadata">

**Author:** ![hireauthority](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hireauthority/32/38815_2.png) [@hireauthority](https://devforum.zoom.us/u/hireauthority)\
**Post date:** [July 19, 2020, 1:41am UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/5 "2020-07-19T01:41:56Z")

</div>

Perfect. Much thanks.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 21, 2020, 10:36pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/6 "2020-07-21T22:36:34Z")

</div>

Let us know if you have additional questions! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![hireauthority](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hireauthority/32/38815_2.png) [@hireauthority](https://devforum.zoom.us/u/hireauthority)\
**Post date:** [July 21, 2020, 11:03pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/7 "2020-07-21T23:03:30Z")

</div>

Hi Tommy.

I ended up using Oauth2 with PHP/cURL and it’s working perfectly.  
One thing I found to be extremely helpful (that I didn’t notice right away) is that the test tool in the documentation for every API call has a tab on the far right with code in several languages. Really great.

Thanks for the follow up.

Gene

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 23, 2020, 9:31pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/8 "2020-07-23T21:31:24Z")

</div>

Hey @hireauthority,

Happy to hear! Yes that is defiantly a helpful tool that is not blatantly obvious! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![hireauthority](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hireauthority/32/38815_2.png) [@hireauthority](https://devforum.zoom.us/u/hireauthority)\
**Post date:** [July 31, 2020, 8:23pm UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/9 "2020-07-31T20:23:45Z")

</div>

Hey Tommy.

If I register a meeting participant via the API, what happens if an identical request is issued a second time?

Will I get a response indicating the person is already registered?  
Will that event cause any duplicate email invitations to go out to the participant?

Thanks

Gene

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 4, 2020, 5:47am UTC](https://devforum.zoom.us/t/can-i-use-jwt-for-these-calls/24512/10 "2020-08-04T05:47:10Z")

</div>

Hey @hireauthority,

Zoom will notice that the request is duplicate and not resend the registration email or add the duplicate to the list.

Thanks,  
Tommy
