APIs & Integrations

PMunar
Participant

scope for campaigns not listed in Enterprise suscription

Hi!

 

I want to get campaign data using the API  "https://api.hubapi.com/marketing/v3/campaigns" endpoint.

To do so I have created a Private App within my client's Hubspot account and went to select the appropriate scopes for this App.

I think I should be able to select "crm.objects.campaigns.read" at least, but I do not see this scope listed.

My client account has the Enterprise suscription, which, to my understanding, is the highest there is, so this should not be an issue of which type of suscription they have.

 

I selected other types of scopes, just to see if they could work, but I got the following response:

 

"{"status":"error","message":"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.","correlationId":"78a03810-844a-4092-b831-bf0e7b9c0802","links":{"support":"https://help.hubspot.com/","forum":"https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations"},"category":"MISSING_SCOPES"}"

 

Am I doing something wrong?

 

Thanks in advance for your help.

 

Best,

 

Pere

0 Upvotes
9 Replies 9
Jaycee_Lewis
Community Manager
Community Manager

scope for campaigns not listed in Enterprise suscription

I just found this Ideas post indicating this API is still being built https://community.hubspot.com/t5/HubSpot-Ideas/Complete-Hubspot-Campaigns-API/idc-p/995471/highlight... – Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

scope for campaigns not listed in Enterprise suscription

Hey, @PMunar 👋 I think @evaldas is asking the correct question. Can you link us to the documentation where you found this endpoint, please? In my experience, when you get the “The scope needed for this API call isn't available for public use “ error, it's telling you that this isn't available as a public endpoint. Or the other times I see it are when an endpoint requires your Developer HAPI Key (different from Public or Private Apps). Seeing the documentation page you found for this endpoint should help clarify if this is not possible or if you need a different approach. 

 

Thanks! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

GRajput
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

scope for campaigns not listed in Enterprise suscription

Hi @PMunar 

 

The scopes required to use the app are provided in the description. Please use those scopes and then try hitting the API.
Furthermore, you can try Content and CRM.objects.marketing_events.read scope.

 

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes
PMunar
Participant

scope for campaigns not listed in Enterprise suscription

Hi Guarav,

 

I am sorry, but maybe I am not seeing something: in which description are you saying the scopes are listed?

0 Upvotes
evaldas
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

scope for campaigns not listed in Enterprise suscription

Hi @PMunar,

 

Have you tried to use the "content" scope in the "Standard" section? 

 

evaldas_0-1727272162857.png

 

It's not very obvious, though some of the legacy documentation is suggesting the "content" scope is associated with campaigns. 

 


✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes
PMunar
Participant

scope for campaigns not listed in Enterprise suscription

Hi!

I tried to include the scope you suggest, but it does not work either. I end up with the same error.

0 Upvotes
evaldas
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

scope for campaigns not listed in Enterprise suscription

Hi @PMunar - where did you find the "https://api.hubapi.com/marketing/v3/campaigns" endpoint? I might be wrong, but as far as I know, a "v3" of this does not exist, which is why you might be getting the error. 

 

The closest thing available is v1:

https://legacydocs.hubspot.com/docs/methods/email/get_campaign_data

 

There is also a post submitted in the ideas forum to make an API available for the campaigns object: https://community.hubspot.com/t5/HubSpot-Ideas/Complete-Hubspot-Campaigns-API/idc-p/360285/highlight...


✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes
PMunar
Participant

scope for campaigns not listed in Enterprise suscription

Hi!

 

I cannot find where did I find this endpoint. Maybe I read it somewhere outside Husbpot documentation or some coleague passed it to me. In fact, searching in the Hubspot Marketing API documentation there is no reference whatsoever to the endpoint I was trying to use.

I apologize for not checking it before writing here.

Jaycee_Lewis
Community Manager
Community Manager

scope for campaigns not listed in Enterprise suscription

No worries at all. I've seen it happen several times — sometimes folks manage to reverse engineer an endpoint, and sometimes something gets published in a doc that shouldn't be public. Have a great rest of your week! — Jaycee 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot