I am trying use webhook API, using OAuth2 mechanism. With only contact scope, I got the error as access token doesn’t have all developer-access permission. So to reduce efforts I gave all permission shown below
This issue is unrelated to OAuth scoping; requests made to get/update an app's webhook settings must be authenticated with a Developer API key. If you're experiencing issues with authenticating an integration, please create a separate topic with details on the scopes you're requesting, the role(s) of the user, and the Hub ID of the portal in question.
The ‘Get Subscriptions’ endpoint requires authentication from your developer portal, not the test portal where you installed the app. Subscriptions are managed in the developer portal where the app lives; you’ll need to use your Developer HAPIkey when making requests to these endpoints.
It's never explained why selecting all scopes within app and authenticating with all scopes that Hubspot lists does not work. Theoretically, if you select all available scopes in your app and then provide all scopes within your request URL, it should authenticate. I've run into the same issue with the same error, and Hubspot has refused to provide support for a week now. Similarly, I tried to authenticate with just "content" selected within app and within the request URL, and even that is now producing the same error.
Thank you for your patience on this; I was out for the holidays. I’ve removed that image since it included your access token; since the forums are public, it’s best practice to remove any authentication from examples, screenshots, etc.
What request did you make that lead to that error? Was it to your developer portal? The developer-access scope is only present in developer portals, which leads me to believe you’re selecting your developer portal in the portal select screen (instead of a test or production portal).
I tried to create app and test portal.
The flow is -
1)I have created an app (Name= webwooktry1 AND App id- 59021) and created a test portal (Name= webhooktry1-dev-4180366.com AND hub id= 4180366).
2)Created a webhook subscription (Contact creation) in the app.
3)Done authorization by selecting the only contact field as
Any scopes that are checked in your app settings (first screenshot) must be requested in your authorization URL. I would recommend unchecking all of the scopes except the ones you need for your integration. The scopes you request in your URL should exactly match the scopes you have checked. (side note: your test portal won’t have access to transactional email, so you shouldn’t include that either).