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

# Environments

> Group OAuth clients and apps by environment

Environments group the [OAuth clients and apps](https://docs.masivo.ai/api-reference/guides/integrate-with-oauth.md)
of an account, for example to keep the credentials of your development builds
apart from production ones.

## Prerequisites

* `settings:read` to see environments
* `settings:write` to create or rename them
* `settings:delete` to delete them

## System environments

Every account has two environments that can't be renamed or deleted:

| Name | Slug |
| - | - |
| Production | `production` |
| Development | `development` |

## Create an environment

**1. Open Environments**

Go to **Settings → Environments** and click **New environment**.

**2. Name it**

Enter a **name** (up to 60 characters, at least one letter or digit) and an
optional **description** (up to 300 characters).

**3. Save**

Masivo derives a **slug** from the name (`QA Ecuador 2` → `qa-ecuador-2`):
lowercase letters, digits and hyphens, unique in the account. The slug
never changes, even if you rename the environment.

## Use an environment

Every OAuth client and app belongs to one environment, chosen when you create
it. Tokens carry the environment ID in the `env` claim, so you can tell which
credential made a request.

An environment can't be deleted while OAuth clients or apps still use it.
Move or delete them first.

> [!NOTE]
>
> An environment labels credentials; it does not separate data. Every
> environment of an account reads and writes the same customers, events and
> campaigns. Whether the account is a production or sandbox account is set
> by the account itself, not by the environment.


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