APIs & Integrations

PowerMyAnalytic
Top Contributor

Missing scopes bug

We are using marketing-emails/v1/emails/with-statistics endpoint, and generally it work fine.

 

In the last days the request in throwing an error of missing scopes:

{ category: 'MISSING_SCOPES',
  correlationId: 'cfb4790f-b162-4c6c-ab00-ec5361596b9c',
  errors:
   [ { context: { requiredScopes: [ 'content' ] },
       message: 'One or more of the following scopes are required.' } ],
  links: { scopes: 'https://developers.hubspot.com/scopes' },
  message:
   'This app hasn\'t been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.',
  status: 'error' }

Verified that the access token actually contain the 'content' scope (with the endpoint  oauth/v1/access-tokens/<accessToken>).

 

We see it for a lot of our clients.

Please investigate.

 

0 Upvotes
10 Replies 10
Illiah
Participant

Missing scopes bug

Have the same issue now while trying to create marketing email by API. With test account everything works as expected, but with usual free account we got error about missing scopes(in my case it's scope content).
When I connected my app hubspot is asking me about content scope and even after granting permission on free account I got error about missing scope

Illiah_0-1654010864962.png

 

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Missing scopes bug

@himanshurauthan , do you have  thoughts here?

0 Upvotes
PowerMyAnalytic
Top Contributor

Missing scopes bug

@dennisedson any idea?

0 Upvotes
HAhmad
Member

Missing scopes bug

Hi, I am having the same issue, I included "content" scope into the OAuth required scopes and connected the app, but when I try to fetch the data from this route https://api.hubapi.com/marketing-emails/v1/emails/with-statistics?&orderBy=-publishDate&limit=100&su...

 

It always gives the 403 Forbidden error of missing scope.

Here are the scopes I used for connecting to the app.

contacts content sales-email-read crm.import crm.objects.marketing_events.read crm.schemas.custom.read crm.objects.custom.read

 

By the way, the Hubspot account I logged in with is free, does it have anything do to with this? Does is require paid account to access it?

 

Please help

 

Thank you

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Missing scopes bug

Hey @HAhmad 

I believe your suspicion is correct about the tiers

Please see APIs by Product Tier for more details

0 Upvotes
PowerMyAnalytic
Top Contributor

Missing scopes bug

Still happening. Jumping.

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Missing scopes bug

Hey @PowerMyAnalytic 

Sorry for missing this.  When it happens, does it always fail afterwards or is it sporadic?

0 Upvotes
PowerMyAnalytic
Top Contributor

Missing scopes bug

Hi @dennisedson ,

It always fail for these clients.

 

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Missing scopes bug

@DanielSanchez , @Hanta have either of you experienced anything like this?

 

0 Upvotes
PowerMyAnalytic
Top Contributor

Missing scopes bug

App id: 212478

Client for example: 4020706

0 Upvotes