> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Environments & data tags

> Control which data sources your apps can access in each environment using data tags

Prod AI has three built-in **environments** that map to your development lifecycle:

| Environment | Description |
| - | - |
| **Edit** | Where developers build your apps |
| **Preview** | Where changes are reviewed before going live |
| **Production** | Where your live applications run |

**Data tags** let you tag different data segments, such as **Staging**, **Production**, or **us-east**, and control which environments each tag is allowed in. Use them to:

* Use non-production data tags in Edit mode so developers and coding agents can safely build and test without touching production data.
* Assign production data tags to the Production environment to keep production data isolated.
* Add multiple data tags to an environment (e.g., `us-east`, `us-west`, `eu-west`) to let users switch between regions in deployed apps.

Data tags are associated with [integration configurations](#configure-integration-credentials). Each data tag is served by a data plane in your Prod AI instance, and traffic for a tag is routed to the data plane that serves it.

Single-tenant Dedicated Cloud and Managed BYOC instances come with two built-in data tags, **Development** and **Production**, already configured. Prod AI deploys the data planes that connect to them. You can create more data tags, and each new tag is routed to a corresponding data plane in your instance.

Data tags were previously called **profiles**. The core concept is the same, but admins now have more control over which data tags are allowed in each environment.

## Create a data tag

**Who can use this feature?**\\

Users with the `profiles:manage` permission. This permission is included in the built-in **Owner** and **Admin** roles

Admins can create new data tags to represent different data environments, regions, or stages. To add a data tag:

1. Navigate to the **Environments** page under **Organization Settings**
2. Click **Add Data Tag**
3. Provide a unique name and key for your data tag
4. Select which environments (Edit, Preview, Production) this data tag is allowed in
5. Click **Create**

Each data tag has a unique alphanumeric **key**. The key can be customized when creating the data tag but cannot be changed after creation to prevent references from breaking.

### Environment assignment

When creating or editing a data tag, you decide which environments it can be used in. This gives admins control over data access:

* A tag allowed only in **Edit** and **Preview** keeps that data source out of production
* A tag allowed only in **Production** ensures production credentials are never used during development
* A tag allowed in all three environments can be used anywhere

## Configure integration credentials

In Prod AI, integrations can have multiple configurations to connect to different database instances or API servers. Each configuration is linked to one or more data tags.

When you create a new integration, Prod AI automatically generates two configurations:

| Configuration | Data tags included | Description |
| - | - | - |
| **Non-Production** (Default) | All data tags where **none** of their allowed environments is Production | Safe for development and testing |
| **Production** | All data tags where **at least one** allowed environment is Production | Isolated production credentials |

You can add additional configurations as needed.

To update or add configurations:

1. Navigate to **Integrations** and search for your integration or create a new one
2. To add a configuration, click the ➕ icon for "Add new configuration" and select the data tag(s)
3. Fill out the configuration form with values specific to the selected data tags
4. Click **Test Connection** to verify connectivity
5. **Create** or **Save** your changes

## Set up data tags for an application

Each environment (Edit, Preview, Production) in your app can have one or more data tags assigned. Only data tags that the admin has allowed for a given environment appear as options. For example, if a data tag is only allowed in Production, it won't appear as an option in Edit or Preview.

To configure data tags for your app:

1. Open the **Settings** icon on the lower left corner of any App
2. Click **Environments**

![Settings menu](https://mintcdn.com/prod-ai/b0osS-Pwnu-fCGg7/images/administration/environments/in-app-env-switcher.png?fit=max\&auto=format\&n=b0osS-Pwnu-fCGg7\&q=85\&s=bf0bd2b29f2e61001a53b1ed4bd6910f)

3. For each environment, select the data tags you want to use from the allowed options
4. Choose a default data tag for each environment

![App environment setup](https://mintcdn.com/prod-ai/b0osS-Pwnu-fCGg7/images/administration/environments/in-app-env-menu.png?fit=max\&auto=format\&n=b0osS-Pwnu-fCGg7\&q=85\&s=f481194823088e2fb222d1376ea7162c)

### Change the default data tag

When multiple data tags are available in an environment, you can set a default. This is the data tag used to execute APIs in this environment by default.

To change the default, select the radio button next to the data tag you want to use by default:

![Default data tag selection](https://mintcdn.com/prod-ai/b0osS-Pwnu-fCGg7/images/administration/environments/set-default.png?fit=max\&auto=format\&n=b0osS-Pwnu-fCGg7\&q=85\&s=89a850e6c720eb62e6274b7f3c9442f9)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.