I've generated an API key in my HubSpot instance to connect to my production Segment instance. I also have a dev/staging instance in Segment, and would like to mirror our production setup. Is there any way to create a test instance, or just test API key, that won't actually alter live data but will work when we insert the tracking code? I can create an entirely new HubSpot account but that's less ideal.
I see that you can create a test hub id, but it only lasts 90 days.
API keys are currently portal-wide. There's no way to create a key with limited permissions. It sounds like you already found this, but I'd suggest creating a test account through our documentation here: https://developers.hubspot.com/docs/faq/how-do-i-create-a-test-account. The account lasts 90 days but can be renewed. This way you can test things out without using your portal's API key.
API keys are currently portal-wide. There's no way to create a key with limited permissions. It sounds like you already found this, but I'd suggest creating a test account through our documentation here: https://developers.hubspot.com/docs/faq/how-do-i-create-a-test-account. The account lasts 90 days but can be renewed. This way you can test things out without using your portal's API key.