> For the complete documentation index, see [llms.txt](https://userflux.gitbook.io/userflux-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://userflux.gitbook.io/userflux-docs/apis/environments-and-api-key-types.md).

# Environments and API Key Types

UserFlux provides two distinct environments to ensure you can develop and test safely without affecting your live user data.

* **Production:** Your live environment where real user data is processed.
* **Test:** A sandbox environment for development, testing, and staging. Use this to try new things before publishing to production.

You can switch between these environments using the dropdown menu in the bottom-left corner of your dashboard.

<figure><img src="/files/0PT4gKXJcClhl54NLvyd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/16JDwAD1Wlxr4RQhlbNi" alt=""><figcaption></figcaption></figure>

#### API Key Categories

UserFlux provides three categories of APIs, each with its own set of keys for both the Test and Production environments.

* **Integration API:** The primary API used for most integrations. It allows you to update user properties and create new events. Use these API keys when integrating with the SDK and collecting data.&#x20;
* **Data API:** Used for querying your data warehouse to read metrics or embed analytics into your own applications.
* **Product API:** Used specifically for synchronising your product catalogue and schemas with UserFlux.

> Each API key has specific permissions (e.g., Read-Only, Write-Only, Read and Write) to ensure secure and controlled access.
