# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://userflux.gitbook.io/userflux-docs/apis/environments-and-api-key-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
