Code 124: Invalid access token

Description
I am using OAuth to acquire an Access Token and Refresh Token successfully. But when I attempt to create a new Webinar with an API ReST call, I am getting “Invalid access token” for a response.

Error
{“code”:124,“message”:“Invalid access token.”}

How I process
Using https://api.zoom.com/v2/users/{user}/webinars as my ENDPOINT where {user} is the same id I used in OAuth to successfully acquire a token.

Request data is:
{
“topic”: “Buds Zoom Test1”,
“type”: 5,
“start_time”: “2021-12-01T13:00:00Z”,
“duration”: “60”,
“timezone”: “”,
“agenda”: “”,
“settings”: "
{
“host_video”: “true”,
“panelists_video”: “true”,
“practice_session”: “false”,
“hd_video”: “true”,
“approval_type”: 0,
“registration_type”: 2,
“audio”: “both”,
“auto_recording”: “none”,
“enforce_login”: “false”,
“close_registration”: “true”,
“show_share_button”: “true”,
“allow_multiple_devices”: “true”,
“registrants_email_notification”: “true”
}
}

Making the following calls:
HttpReq.open “POST”, “https://api.zoom.com/v2/users/{user}/webinars”, False
(where {user} is the same ID I used to call OAuth)

HttpReq.setRequestHeader “Content-Type” , “application/json”
HttpReq.setRequestHeader “Authorization”, "Bearer " & csMaster_AccessToken
HttpReq.send sReqBody

sReqBody = the request string above
csMaster_AccessToken = the Access Token

I verified that the AccessToken is the same one returned from calling a Refresh.

I don’t know why this is happening and could use some guidance.

Could it be that the scope is set to “scope”:“webinar:master webinar:read:admin webinar:write:admin”? Or perhaps that I’m using this to test and have not yet setup a Webinar feature for my account? If the answer is yes to either of the former, shouldn’t I be getting a different error message?

Hi @bud.gressett,

Thanks for reaching out about this.

Or perhaps that I’m using this to test and have not yet setup a Webinar feature for my account?

If you do not have a Webinar package on your account and a webinar license applied to the user you’re attempting to create a webinar under, this would likely be the issue.

Once you add a webinar license, I believe this should address the error.

Thanks,
Will

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