APIs & Integrations

GraemeBrett
Member

hapikey - This app hasn't been granted all required scopes to make this call

I had written a functioning integration using the hapikey to get data from Hubspot.


IE:

https://api.hubapi.com/marketing-emails/v1/emails/yyy/?hapikey=xxx 

 

However these requests now give an error

{
    "category": "MISSING_SCOPES",
    "correlationId": "c764ada3-a654-4d64-924b-d1d9fefec6bd",
    "errors": [
        {
            "context": {
                "requiredScopes": [
                    "content"
                ]
            },
            "message": "One or more of the following scopes are required."
        }
    ],
    "links": {
        "scopes": "https://developers.hubspot.com/scopes"
    },
    "message": "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",
    "status": "error"
}

Giving that I am using the hapikey I figured that there were no scopes.

 

I'm not trying to send emails, and the only posting my integration does is some contact property updating (which is not reporting any errors)

This only appears to be an issue in my development environment, the production account is working fine. Is this perhaps an issue with a missing service that is paid for? 

0 Upvotes
4 Replies 4
jcmoreland
Member

hapikey - This app hasn't been granted all required scopes to make this call

Ran into the same thing. Some code that worked in development historically, no longer working in development because of this scopes error. Still working in production. Not sure what we are supposed to do about maintaining our historical code.
Any workaround without having to build a new app with oauth and/or paying for another environment for development?? We do pay enterprise for production.

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

hapikey - This app hasn't been granted all required scopes to make this call

Hi @GraemeBrett ,

I believe your assumption is correct.

0 Upvotes
GraemeBrett
Member

hapikey - This app hasn't been granted all required scopes to make this call

Great, then why do I get this error?

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

hapikey - This app hasn't been granted all required scopes to make this call

Because, as you said, it is not a paid account 😀

0 Upvotes