APIs & Integrations

shadwrack
メンバー

Skyvia Integration through Developer Account

解決

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

0 いいね!
1件の承認済みベストアンサー
lscanlan
解決策
元HubSpot社員
元HubSpot社員

Skyvia Integration through Developer Account

解決

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

元の投稿で解決策を見る

0 いいね!
4件の返信
lscanlan
元HubSpot社員
元HubSpot社員

Skyvia Integration through Developer Account

解決

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
0 いいね!
shadwrack
メンバー

Skyvia Integration through Developer Account

解決

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?

0 いいね!
lscanlan
解決策
元HubSpot社員
元HubSpot社員

Skyvia Integration through Developer Account

解決

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
0 いいね!
shadwrack
メンバー

Skyvia Integration through Developer Account

解決

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

0 いいね!