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?
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.
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.
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.