What SCOPE do i need for the communication-preferences API

Hi, i’m trying to use the marketing api to view and update subscriptions for my contacts.

For example the url:

https://api.hubapi.com/communication-preferences/v3/definitions

But i keep getting the MISSING_SCOPES error (“This app hasn’t been granted all required scopes to make this call”).

And i can’t seem to find any scopes in the list (Working with OAuth - HubSpot docs) that corresponds to this API.

I currently have enabled:

"contacts content forms e-commerce"

and i have tried a few others that i found plausible.

Anyone know what scope i’m missing here to use this API? :smiley:

Hey @bigwhaleinvesto

According to the docs that endpoint does not have a required scope which is a little suspicious :thinking:

Going to ask around about that. The v1 endpoint required the content scope.

When you added scopes, did you reapprove in your portal?

@MichaelC , @IvanGil , @Hanta have any of you looked at this before?

Thanks for the tip on the v1 endpoint! :grinning_face: That one worked and solves my problem.

I see that some of the v3 endpoints are still beta, so i’m guessing this might be a thing that’s still a bit in the works.

I think i’ll leave this thread open, in case someone has some more input on what was wrong

Heyo @bigwhaleinvesto,

After beating my head on this, I have come to discover that OAuth is not defined as an authorization method for this endpoint :facepalm

@dennisedson Are there any plans to add OAuth support for this API?

@TDroogh , Yes! It is being worked on presently. Just a few things to iron out

Did someone mention what IS the scope needed for v3 of `api.hubapi.com/communication-preferences`