There's a new version of the HubSpot API
As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.
You can use test accounts to test an integration without affecting any real HubSpot data. Test accounts have access to Enterprise versions of the HubSpot Marketing, Sales, and Service Hubs, allowing you to test most HubSpot tools and APIs.
Test accounts are created and managed within developer accounts. If you don’t already have a developer account, you can sign up for one here.
Once you sign in to your developer account, you'll have the option of creating an app or creating a test account.
You can also get to the Testing dashboard using the Testing link in the top navigation menu.
On the Testing dashboard, click the orange button that says “Create test account.” This page will also show any existing test accounts, their expiration date, and connected apps. Once your test account is created, you can install your integration.
Test accounts expire after 90 days. They can be renewed in two ways: