COS URL Mappings required scope


#1

We are getting an error back when we try to retrieve data from the COS URL Mappings API:

The error states “this oauth-token () does not have proper permissions! (requires any of [content-settings-access]).” However, the listed scopes for OAuth do not have content-settings-access as an available scope, and attempting to request this scope results in an invalid scope error during OAuth. What scope is required for the COS URL Mappings API?


#2

Hi @Casey_Thompson,

That error message is listing a particular permission; the public OAuth scopes are technically groups of smaller scopes. You’ll need to request the content scope in order to access the url mappings API.


#3

Hi @Derek_Gervais,

We do request the content scope. The full authorization url is as follows:

https://app.hubspot.com/oauth/authorize/?optional_scope=content%20social%20automation%20files%20forms%20timeline&scope=contacts&client_id=0bb9cfde-3476-11e5-9def-3ff296bb2e59&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%3A51232%2F

Despite this, we still get that error about the content-settings-access scope. This is while testing against the testapi@hubspot.com account (62515 portal).


#4

Hi @Casey_Thompson,

I see. After doing some digging, this appears to be an issue on our end. I’ll touch base with the team and get back to you here when I have some more information.