APIs & Integrations

bigwhaleinvesto
Participant

What SCOPE do i need for the communication-preferences API

SOLVE

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 (https://developers.hubspot.com/docs/api/working-with-oauth#scopes) 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? 😃

 

 

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

What SCOPE do i need for the communication-preferences API

SOLVE

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

 

View solution in original post

0 Upvotes
6 Replies 6
dvanbrunt
Participant

What SCOPE do i need for the communication-preferences API

SOLVE

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

0 Upvotes
TDroogh
Participant

What SCOPE do i need for the communication-preferences API

SOLVE

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

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

What SCOPE do i need for the communication-preferences API

SOLVE

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

dennisedson
HubSpot Product Team
HubSpot Product Team

What SCOPE do i need for the communication-preferences API

SOLVE

Hey @bigwhaleinvesto 

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

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?

bigwhaleinvesto
Participant

What SCOPE do i need for the communication-preferences API

SOLVE

Thanks for the tip on the v1 endpoint! 😀 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

 

 

dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

What SCOPE do i need for the communication-preferences API

SOLVE

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

 

0 Upvotes