Ajax call to Api

i am making an ajax call to https://api.zoom.us/v2/webinars/111/panelists but i am receiving CORS errors (has been blocked by CORS policy: Response to preflight request doesn’t pass access control check)

I am using Zoom Web SDK

Hi @c.egeolu
Thanks for reaching out to us!
Have you been able to troubleshoot this on your end?

I have tried all I could but to no avail.

My intention was to remove a user from panelists via the api

Hi @egeoluchinedu welcome to our community!
Can you confirm if you are using this endpoint:

Also, make sure that the webinar ID is correct please

Dear Elisa,

Yes. So the plan was to remove an attendee that was upgraded to a panelist.

Each time the attendee wants to rejoin after leaving the meeting from zoom web sdk, he always receives “Please provide a valid TK” error message.

So I was thinking removing the registered email from the panelist will solve the problem

Ah I see… let me try to replicate this on my end.
In the meantime, does your webinars has registration enabled? if so, maybe after removing the attendee from the panelist, mabye you can add it as a registrant so they can join the webinar?

The following are steps to replicate the scenario.

  1. Attendee joins webinar via the zoom web SDK software from a preferred browser
    (e. g Google chrome or Edge)
  2. Host upgrades the attendee to Panelist.
  3. Attendee closes the browser he used to join the webinar
  4. Attendee tries to rejoin the webinar again.
  5. The error popup us “Please provide a valid TK parameter”

So, the question is:

  1. How to generate the TK parameter and allow the attendee to rejoin the webinar via the Zoom Web SDK
  2. How to remove the attendee as a panel list via Zoom API using jquery ajax call or asp.net httprequest call

Hi @c.egeolu
Thanks for sharing more details with me.
I am not able to replicate this issue.
When I did my testing, once I left the meeting I used the same join URL to join the meeting and did not get an error "Please provide a valid TK parameter’

You can remove the panelist via Zoom API using the following endpoint:

The issue is on Webinar.

Attendees can leave and join meeting without having the TK error.

But as soon as the attendee is added as a panelist, and leaves the meeting, he/she can not rejoin.

Try the simulation again by making your self an attendee and let the host make you a panelist.

Meanwhile, I tried the API and I got null, I guess I am not able to generate the correct Authorization token for the Bearer Header.

Can you also pls assist in guiding me how to generate the Bearer Token in the Header before passing via ajax.

Hi @c.egeolu
Sorry, I missed your response I did not get a notification on this
I will go ahead and replicate this behavior again

Thanks. The issue has not been resolved.

I am not able to replicate this on my end.
I tried making myself panelist and leaving the meeting and then joining back and had no issues.
I am tagging a colleague to see if he can give us any suggestions @chunsiong.zoom

Please share sample code on how to generate token for the header bearer during an Ajax call to zoom API to list panelist and also delete a user from panelist