Skyvia Integration through Developer Account

SOLVE
Highlighted
New Contributor

I am trying to access our HubSpot data using our Developer Account and HAPI key that is created for the App.  I am trying to use the CRM Integration Account but I get an error that the oath token doesn't have the proper permissions.  I have verfied that the App was given permissions to access all the data.  What am I missing?

HubSpot Developer Account2.PNGHubSpot Developer Account3.PNG

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
HubSpot Moderator

Hi @shadwrack,

 

Could you plug your current, non-expired access token into the endpoint documented here: https://developers.hubspot.com/docs/methods/oauth2/get-access-token-information ? The "hub_id" should be for the account where your contacts live. So in your case that should be the account where the contact records live, which is 1901741. If that's not the case, then maybe run through the oauth flow again. And when you visit the authorization URL (that's the URL built from here: https://developers.hubspot.com/docs/methods/oauth2/initiate-oauth-integration), make sure you're selecting account 1901741. Then when you exchange that auth code, the access tokens will be tied to that portal.

 

Let me know if that helps?

 

 - Leland

Leland Scanlan

HubSpot Developer Support
Reply
0 Upvotes
4 Replies 4
HubSpot Moderator

Hi @shadwrack,

 

Could you let me know the account ID that you're trying to pull contacts from and also the app ID of your app? I'm happy to take a look at what's going on. Having said that, this error is usually because of retrieving the auth code from the dev account, whereas you actually want to be selecting the account you'll be getting the contacts from. Your developer account won't have the contacts-read scope, whereas your non-developer account should.

 

 - Leland

Leland Scanlan

HubSpot Developer Support
Reply
0 Upvotes
New Contributor

The Account ID for the Developer Account is 5697801 and the App ID is 192353.

The Account ID for the non developer Account is 1901741.

 

Which is the best way to make sure I am getting access to all the data that is needed?

Reply
0 Upvotes
HubSpot Moderator

Hi @shadwrack,

 

Could you plug your current, non-expired access token into the endpoint documented here: https://developers.hubspot.com/docs/methods/oauth2/get-access-token-information ? The "hub_id" should be for the account where your contacts live. So in your case that should be the account where the contact records live, which is 1901741. If that's not the case, then maybe run through the oauth flow again. And when you visit the authorization URL (that's the URL built from here: https://developers.hubspot.com/docs/methods/oauth2/initiate-oauth-integration), make sure you're selecting account 1901741. Then when you exchange that auth code, the access tokens will be tied to that portal.

 

Let me know if that helps?

 

 - Leland

Leland Scanlan

HubSpot Developer Support
Reply
0 Upvotes
New Contributor

Thanks, I have connected successfully to the account that has the contacts there so I will use that one.

Reply
0 Upvotes