# Test/Dev/Staging Instance to connect to Segment

**URL:** <https://community.hubspot.com/t/test-dev-staging-instance-to-connect-to-segment/14188>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [May 1, 2019, 9:17pm UTC](https://community.hubspot.com/t/test-dev-staging-instance-to-connect-to-segment/14188 "2019-05-01T21:17:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ldb](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ldb/32/57633_2.png) [@ldb](https://community.hubspot.com/u/ldb)\
**Post date:** [May 1, 2019, 9:17pm UTC](https://community.hubspot.com/t/test-dev-staging-instance-to-connect-to-segment/14188/1 "2019-05-01T21:17:08Z")

</div>

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.

Thanks!

---

<div class="post-metadata">

**Author:** ![lscanlan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lscanlan/32/66262_2.png) [@lscanlan](https://community.hubspot.com/u/lscanlan)\
**Post date:** [May 2, 2019, 5:15pm UTC](https://community.hubspot.com/t/test-dev-staging-instance-to-connect-to-segment/14188/2 "2019-05-02T17:15:23Z")

</div>

Hi @ldb,

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: [Accounts Dashboard | HubSpot](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.

- Leland
