I need to register users for a webinar via API. For that, I have created an event. I have also created a Server-To-Server OAuth app in the marketplace and selected the necessary scopes. Using the endpoint https://zoom.us/oauth/token with the app’s account_id and grant_type account_credentials, I obtain an access token.
I am trying to list the events to get their ID with https://api.zoom.us/v2/zoom_events/events, but I get the following response:
json
Copiar código
{
"total_records": 0,
"events": []
}
The event number that appears on the web (which is 8 digits long and has spaces) does not work.
Where can I find the event ID to use with https://api.zoom.us/v2/zoom_events/events/86269274338/tickets? I always get the following error:
Hi @socialmedia1 , at this time, you cannot create meetings or webinars for Zoom Events platform via API because they are tied to users. In the Zoom Events platform, meetings and webinars are tied to sessions and events. You will notice when you create a Zoom Event that you are hosting, the meeting or webinar will not show up as an upcoming meeting or webinar in your personal web portal.
Hi @socialmedia1 , I am having a meeting with your SE and am seeing there may be unexpected on my end that makes the information I gave you not true. Please let me submit an inquiry to the API engineering team for more information.
When creating a session or event via API for Zoom Events platform, webinarId or meetingId =/= eventId or sessionId.
Furthermore, you cannot create a a webinar or meeting programmatically for Zoom Events through the Create an Event or Create a Session endpoint, or through the Meeting and Webinars API endpoints to try to assign to a Zoom Event or Sessions instance. Zoom Event and Webinar/Meeting APIs are independent.
When you create a multi event session in ZE you can use this API and this API to get a list of sessions and details for an exact session. Both of these APIs will return the meeting or webinar id which you can then use to call webinar and meeting APIs. Additionally, you can create a single session which you can then set as a meeting or webinar but this will live in ZE and the same rules as above apply.
Please note, however, you cannot do things like use webinar/meeting APIs to perform POST (create) or PATCH (update) operations like add/create registrants/users in Zoom Events.
Regarding visibility of webinar or meeting id in the Zoom web portal and why some can see, but not others as “upcoming” – only Zoom Events Hub owners can see upcoming Zoom Events in their web portals. Members of the hub, despite creating a particular Zoom Event and being a host, will not see these as upcoming in their portals. This is because all the Zoom Events are using the Hub Owner’s license.
To alternatively register users for a Zoom Event programmatically, please do the following:
Get access token ( setup right scopes)
List all events to get the event_id
List tickets types: get /zoom_events/events/{eventId}/ticket_types. As it is a free event, they are just getting one type.
Create a ticket with the email and the ticket type: post /zoom_events/events/{eventId}/tickets
With Zoom Events registration, there is an option that attendees need to register for each session to attend.
How can I use the Zoom Events API to register a user in this way? I’ve looked at the create ticket API but it doesn’t seem to allow for you to select a particular session.
Hello @gianni.zoom I am running into an issue trying to get the event ID programmatically.
I got my access token and have included the following scopes:
zoom_events:read:list_events:admin and zoom_events:read:event:admin
But when I run a GET to v2/zoom_events/events I get the following result even though I have an upcoming Zoom Event (not Webinar, but an event) created:
webhook response: {“total_records”:0,“events”:}
Is there a different place within the setup of the event in the portal where I can get the event ID?