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

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

You can find your Developer API Key in your Developer Account

Best,

Jaycee

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

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