Trying to list webhooks and getting an error

Hi,

I am trying to programmatically list webhooks in my user-level app using the API described at: https://marketplace.zoom.us/docs/api-reference/zoom-api/webhooks/webhooks

I get the following error: “Invalid access token, does not contain scopes: [webhook:read:admin, webhook:write:admin]”

During app setup in the Marketplace there is nowhere to specify these webhook management scopes.

How is this intended to work?

Thanks,

Simon.

Hi @simon,

Within the marketplace app and under the feature tab you should see Event Subscriptions, when you enable it, you should see Event Types. There you would see the webhook scopes.

Hi @michael_p.zoom,

Thanks, I had already looked there and that’s not what I need. I want to programmatically list, set and remove webhooks using the APIs documented at: https://marketplace.zoom.us/docs/api-reference/zoom-api/webhooks/webhooks

I can’t see how one acquires the necessary scopes for this. Those being: webhook:read:admin and webhook:write:admin.

I have to assume it’s possible - it’s in the API documentation and explorer.

Best regards,

Simon.

Hi, i also tried to create/get webhook and get error in response:
Invalid scope: webhook:read:admin as current client hasn’t this approved scope! (4,700)
I am also get error when i tried create the authorize with url:
https://zoom.us/oauth/authorize?client_id=*&response_type=code&redirect_uri=&scope=webhook%3Aread%3Aadmin+webhook%3Awrite%3Aadmin

please your help.

thanks

Hey @yoavc,

Is this happening with a Webhook App Type or OAuth App type?

Thanks,
Tommy

Hi @tommy ,
This is happening with OAuth App type.
I added Event Subscription in Application Management.

Thanks

Hey @yoavc,

Can you try authorizing with the url generated on the Zoom App Marketplace dashboard:

(I think the issue is the &scope=webhook%3Aread%3Aadmin+webhook%3Awrite%3Aadmin being in the authorize url. Try removing it or generating the authorize url via your Apps Dashboard.)

Thanks,
Tommy

@yoavc, another solution is creating a Webhook App Type. No authentication is necessary for this method. Here are the list of webhook events we have.

-Tommy