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"}"
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.
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!
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.
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.
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