APIs & Integrations

DKndn
Member

Scopes missing for Webhook subscriptions

Hi there,

 

we have an App with these scopes:

"oauth",
"crm.objects.leads.read",
"crm.objects.users.read",
"crm.objects.appointments.read",
"crm.objects.deals.read",
"crm.objects.contacts.read",
"crm.schemas.contacts.read",
"crm.schemas.appointments.read",
"crm.schemas.deals.read"

We want to subscribe to a webhook that tells us deal phase changes.
I POST this URL ...
https://api.hubapi.com/webhooks/v3/{$appId}/subscriptions

... with theses settings:
 
$body = [
"subscriptionDetails" => [
"eventType" => "deal.propertyChange",
"propertyName" => "dealstage",
],
"targetUrl" => $webhook_url,
"active" => true
];
 
We call with an OAuth token (that works - for sure not the issue).
But we get this error back:
 
The scope needed for this API call isn't available for public use. If you have questions, contact support or post in our developer forum.
category: "MISSING_SCOPES"
 
Our App is not listed in the marketplace (maybe that's the issue?).
 
Thanks in advance for your help!

Best
Daniel
0 Upvotes
3 Replies 3
Jaycee_Lewis
Community Manager
Community Manager

Scopes missing for Webhook subscriptions

Hey, @DKndn 👋 Those endpoints use your Developer API key and your App ID. That's why you are getting the error.

CleanShot 2025-02-13 at 16.11.03@2x.png

You can find your Developer API Key in your Developer Account

CleanShot 2025-02-13 at 16.13.07@2x.png

Best,

Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes
DKndn
Member

Scopes missing for Webhook subscriptions

Hi @Jaycee_Lewis,

 

I got a step further with the Developer API-Key.
But I don't get the webhook subscription yet.

 

We develop an WP-Plugin which will be installed on different Servers/URLs.
I want to subscribe from every WP-Plugin separately to some webhooks. The webhooks should then be sent from Hubspot directly to the WordPress-Server where our Plugin is installed.

 

For now it seems that I have to manually type a webhook destination URL where every Webhook will be sent to (regardless of which client).

 

What's the way so every client (with their own server) can subcribe to an HS Webook?

 

Best

Daniel

0 Upvotes
DKndn
Member

Scopes missing for Webhook subscriptions

You are brilliant! I will test this now and get back if it worked.

0 Upvotes