# API Webinar Registration doesn't add user to Registrants list

**URL:** <https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443>\
**Category:** API and Webhooks\
**Created:** [June 26, 2020, 5:33am UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443 "2020-06-26T05:33:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavel.medvedev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pavel.medvedev/32/11058_2.png) [@pavel.medvedev](https://devforum.zoom.us/u/pavel.medvedev)\
**Post date:** [June 26, 2020, 5:33am UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443/1 "2020-06-26T05:33:00Z")

</div>

I seem to be successfully adding registrants to a webinar using the Zoom API and python. I’ve confirmed this as the registrant is receiving a notification email. Despite the successful email, I don’t see the registrant in the front end view under the “Manage Attendees” section of the webinar page. Intent of the code is to loop through a CSV file and register individuals line by line into an appropriate webinar. Using OAuth.

import requests  
import csv  
import pandas as pd  
import json  
api = API\_KEY  
url = “[https://api.zoom.us/v2/webinars/](https://api.zoom.us/v2/webinars/)”  
input\_values = pd.read\_csv(REGISTRATION.csv, delimiter=’,’)  
headers = {‘content-type’: “application/json”,‘authorization’: "Bearer " + api}  
for i in range(len(input\_values)):  
payload = {‘email’:input\_values.email[i],‘first\_name’:input\_values.first\_name[i]}  
WebinarID = str(input\_values.WebinarID[i])  
r = requests.post(url + WebinarID + “/registrants”, data=json.dumps(payload), headers=headers)  
print(payload)  
print(r.text)  
if r.ok:  
print(“complete”)  
else:  
print(“error”)

Response:  
{“registrant\_id”:"###",“id”:###,“topic”:“API Test”,“start\_time”:“2020-06-29T22:00:00Z”,“join\_url”:“[https://test.com](https://test.com)”}

Thank you

---

<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:** [June 26, 2020, 10:53pm UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443/2 "2020-06-26T22:53:14Z")

</div>

Hey @pavel.medvedev,

For your webinar registration settings, are you using automatically approve or manually approve?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![pavel.medvedev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pavel.medvedev/32/11058_2.png) [@pavel.medvedev](https://devforum.zoom.us/u/pavel.medvedev)\
**Post date:** [June 27, 2020, 4:40am UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443/3 "2020-06-27T04:40:14Z")

</div>

Hi @tommy , automatically approve. It’s strange as I’m getting the invites sent to the email address and am able to join the webinar.

---

<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:** [June 29, 2020, 8:24pm UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443/4 "2020-06-29T20:24:03Z")

</div>

Hey @pavel.medvedev,

That is strange, are you able to pull the registrant list using the API?

> **[List Meeting Registrants - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrants)**
>
> A host or a user with admin permission can require registration for a Zoom meeting. Use this API to list users that have registered for a meeting.
> Scope...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![pavel.medvedev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pavel.medvedev/32/11058_2.png) [@pavel.medvedev](https://devforum.zoom.us/u/pavel.medvedev)\
**Post date:** [June 29, 2020, 8:43pm UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443/5 "2020-06-29T20:43:23Z")

</div>

Hi @tommy I think I figured it out. The demo registrants I was using in my file had different names, but all contained the same email address. As soon as I changed the email address, they appeared as net new on the report. Appreciate the help!

Before I start a new thread, do you have information you can redirect me to on how I can refresh an API token via python? I’m looking at this for my direction: [https://requests-oauthlib.readthedocs.io/en/latest/oauth2\_workflow.html](https://requests-oauthlib.readthedocs.io/en/latest/oauth2_workflow.html)

---

<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:** [June 30, 2020, 11:32pm UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443/6 "2020-06-30T23:32:31Z")

</div>

Hey @pavel.medvedev,

Nice find! Glad you figured it out!

As for your python question, I don’t have a specific library to suggest, but you just make http requests, here is the guide:

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To setup access credentials and request scopes for yo...

Thanks,  
Tommy

---

<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, 10:31pm UTC](https://devforum.zoom.us/t/api-webinar-registration-doesnt-add-user-to-registrants-list/22443/7 "2020-08-21T22:31:32Z")

</div>

Closed on August 21, 2020, 10:31pm UTC


