Event subscription scope

I am trying to add the event subscription programmatically, however it looks like existing scopes are not enough and I need an extra scope:

{“code”:201,“message”:“Invalid access token, does not contain scopes:[marketplace:write:event_subscription].”}

I am following Elisa’s article ( Enabling Event Subscriptions Programmatically )

  1. If I add that scope right now to our app that is already approved in the marketplace, will it break anything such as disable the app in the marketplace etc?
  2. Would I need to apply for approval process and if so how long would it possibly take?

Sebastian

hi @Sebastian3 ,

You want to add a new scope for your app?
Adding this to your development version will not affect the live app

You can then test your development version and confirm it works
Yes, you will then need to submit the new version for approval from Zoom to go live.

As it is such a small change, I would think it could get quick approval. OI don’t believe there are any large delays at present.
Your users will then need to “approve” the change, as they must confirm approval of adding the extra scope.

@elisa.zoom Did I miss anything?

Hope that helps

John

Hi @expertswho
Thanks for jumping in here! you are spot on!

@Sebastian3 can you please confirm what endpoint are you trying to call when getting that error? you should not need to add the scopes manually, as you can see in the guide, you need to generate an access token using grant_type=client credentials and you will be able to get an access token with the right scopes

That was my issue. New token of that type. So It seems to has been subscribed and I got a {“event_subscription_id”:“my_subscription_id”} then I called

curl --request PATCH
–url ``https://api.zoom.us/v2/marketplace/app/event_subscription/``my_subscription_id
–header ‘Authorization: Bearer YOUR_SECRET_TOKEN’
–header ‘Content-Type: application/json’
–data ‘{
“user_ids”: [
“my_user_id”
],
“account_id”: “my_account_id”
}’and I got OK 200.

Where in the app can i see the subscription? If i go to “Access→Event Subscription” I only see my old event subscriptions.

The entire idea was to use an application that is already in marketplace in UAT environment by creating an event subscription to staging url. That was suggested by Abe and Derek.

Please advise,

Sebastian

Hey @Sebastian3
We currently do not support seeing these events in the Marketplace UI, using the same access_token you generated to create and subscribe to an event subscription

You can see them calling the API
https://developers.zoom.us/docs/api/marketplace/#tag/app/get/marketplace/app/event_subscription

In the response body for this request you will receive a create_source field with the value of default or openAPI

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