APIs & Integrations

rhysjevons
Member

Issue retrieving list of deals

Hi, I'm trying to retrive a list of deals uaing the "run in postman" example in the docs. However I keep getting a scopes error. I've added all scopes to try and resolve the issue but I'm having no luck. I've removed the API Key in the imnages but below is a screenshot of the included scopes, my postman request and the error response.

Can someone help me out or point me in the right direction to resolve this? I've got no idea why I'm failing at the first hurdle with this.

{
    "status": "error",
    "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.",
    "correlationId": "fd6605dd-2814-410e-98ec-144de2ee7ebd",
    "errors": [
        {
            "message": "One or more of the following scopes are required.",
            "context": {
                "requiredScopes": [
                    "e-commerce",
                    "contacts",
                    "tickets"
                ]
            }
        }
    ],
    "links": {
        "scopes": "https://developers.hubspot.com/scopes"
    },
    "category": "MISSING_SCOPES"
}

Screenshot 2020-09-22 at 15.40.17.pngScreenshot 2020-09-22 at 15.41.13.png

0 Upvotes
3 Replies 3
dennisedson
HubSpot Product Team
HubSpot Product Team

Issue retrieving list of deals

Hey @rhysjevons ,

Thanks for adding your question here!

 

@tjoyce , @stefen ,  do you guys have thoughts on this?

 

Thanks!

 

stefen
Key Advisor | Partner
Key Advisor | Partner

Issue retrieving list of deals

@rhysjevons if you're using an API key, you shouldn't have to even worry about scopes since you should have full access to the portal. If you're using OAuth you should be using the access_token instead of the api key.

Stefen Phelps, Community Champion, Kelp Web Developer
tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Issue retrieving list of deals

@rhysjevons - Agreeing with @stefen - I have never had an issue with scopes when using an hapikey param in postman. Can you also double check and make sure you don't have authorization headers set in postman? It should just be a regular request without any Auth headers

 


If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.