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

# Create an environment

`POST /environments`

Create a new environment

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Request body

- TypeEnvironmentsEnvironmentConfigCreate — Properties used to create a new environment
  - `name` string, required — The name of the environment
  - `isProd` boolean, required — Whether or not the environment is a production environment
  - `guestAuthentication` TypeEnvironmentsGuestAuthenticationEnum[]
  - `metadata` object
  - `translationsPath` string
  - `namespaces` string[]
  - `languageOverride` string

## Response `200`

Response with status 200

- TypeEnvironmentsEnvironmentResponse
  - `data` TypeEnvironmentsEnvironment, required
    - `id` string, required — Environment ID
    - `accountId` string, required — Account ID
    - `name` string, required — The name of the environment
    - `isProd` boolean, required — Whether or not the environment is a production environment
    - `guestAuthentication` TypeEnvironmentsGuestAuthenticationEnum[], required
    - `features` object, required
    - `metadata` object, required
    - `translationsPath` string
    - `namespaces` string[]
    - `languageOverride` string

---

[API](https://skmtc.net/flatfile/apis/api-reference.md) · [All operations](https://skmtc.net/flatfile/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flatfile/api-reference/revisions/9d3a9979cd96/schema)
