---
title: "Create an environment"
method: POST
path: "/environments"
tags: ["environments"]
---

# Create an environment

`POST /environments`

Creates a new environment for the workspace associated with the Management API key. Maximum number of environments in defined by your plan limits. If you need additional environments, contact our support team.

## Headers

- `X-API-Version` string, required

## Request body

- CreateEnvironmentDtoV1
  - `name` string, required — Name for the new environment
  - `description` string — Description for the environment
  - `limit_mode` 'none' | 'restrict' | 'notify' — Limit mode for the environment
  - `limit_value` number — Limit value for the environment (required when limitMode is not "none")

## Response `201`

Created environment object.

- EnvironmentApiResponseDtoV1
  - `data` EnvironmentResponseDtoV1, required
    - `id` string, required — Auto-generated ID for an environment
    - `name` string, required — Environment name
    - `description` string — Environment description
    - `limit_mode` 'none' | 'restrict' | 'notify' — Environment limit mode
    - `limit_value` number — Environment limit value
    - `is_restricted` boolean, required — Whether the environment is restricted
    - `restricted_at` string — Date when environment was restricted
    - `created_at` string, required — Date when environment was created
    - `updated_at` string, required — Date when environment was last updated

## Other responses

- `400` — Error: Environment can't be created due to validation errors.
- `401` — Error: Invalid API key.
- `429` — Error: API key has exceeded its rate limit.

---

[API](https://skmtc.dev/fingerprint/apis/management-api.md) · [All operations](https://skmtc.dev/fingerprint/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fingerprint/management-api/revisions/b17eccec9d47/schema)
