Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

projectId
string
required

The ID of the project to create the environment in.

Body

application/json
name
string
required

The name of the environment to create.

Required string length: 1 - 255
slug
string
required

The slug of the environment to create.

Required string length: 1 - 64
position
number

The position of the environment. The lowest number will be displayed as the first environment.

Required range: x >= 1

Response

Default Response

message
string
required
projectId
string
required
environment
object
required