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

# Create environment

`POST /environments`

Use when setting up a new environment (e.g. production, staging) for the tenant. Ideal for separating billing or config per environment.

## Request body

- DtoCreateEnvironmentRequest
  - `name` string, required
  - `type` string, required

## Response `201`

Created

- DtoEnvironmentResponse
  - `created_at` string
  - `id` string
  - `name` string
  - `type` string
  - `updated_at` string

## Other responses

- `400` — Invalid request
- `500` — Server error

---

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