APIs & Integrations

TommyPrice
Participant | Elite Partner
Participant | Elite Partner

oAuth 403 error

We're having issues getting a connection to Hubspot oAuth. We're receiving a 403 error. Specifically, it is api.hubapi.com/oAuth/v1/token that is giving the error. Please can you advise what is potentially causing this and how we can resolve the error?

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee
HubSpot Employee

oAuth 403 error

Hey @TommyPrice,

 

In order for me to further troubleshoot on this, could you share with me the following:

 

1. What's the full error message code?

 

2. What's the app ID and portal ID in question?

0 Upvotes
TommyPrice
Participant | Elite Partner
Participant | Elite Partner

oAuth 403 error

Hi Wendy,

 

1. The response from oAuth call to /oauth/v1/token with the initial Refresh Token:

 
"status": "BAD_SCOPES",
    "message": "missing or invalid scopes",
    "correlationId": "0107d68e-d383-4fd7-b9b2-f818443ba03a",
    "requestId": "325d7d66-32ad-42fa-af9c-e5d0866f21fc"

 

2.  Sandbox App ID: 204006

      Portal ID: 6420711

 

Thanks.

 

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

oAuth 403 error

Hey @TommyPrice,

 

Could you use this endpoint: Get Information for OAuth 2.0 Access Token to check if the scopes returned from the token matches with what you're using on this endpoint Refresh OAuth 2.0 access token

0 Upvotes