> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/help-center/help-topics/connecting/setting-up-provider-credentials-bring-your-own-keys/single-provider-credentials-environments-dns.md).

# Do I need separate provider apps and DNS per environment?

You don't need a separate provider app or extra DNS records per Terra environment.

You **don't need a separate provider app or extra DNS records per** [**Terra environment**](https://docs.tryterra.co/health-and-fitness-api/integration-setup/understanding-terra-environments).

You can reuse the same provider app and custom domain for testing, staging and production. **Provider credentials are saved per environment**, though: enter the client ID, client secret and redirect URL on the Connections page of each environment you use. An environment without them falls back to Terra's default credentials where the provider has them.

Users are connected in whichever environment initiated the auth.

If you do want separate provider apps per environment, **keep the same custom domain and append the provider app's client ID to the webhook path** (e.g. `/hooks/{provider}/push/{client_id}`). Users are then split per environment with distinct user IDs.
