Environments
Create
Create environment
POST
/
api
/
v1
/
workspace
/
{workspaceId}
/
environments
Authorizations
Authorization
string
headerrequiredAn access token in Infisical
Path Parameters
workspaceId
string
requiredThe ID of the project to create the environment in.
Body
application/json
name
string
requiredThe name of the environment to create.
position
number
The position of the environment. The lowest number will be displayed as the first environment.
slug
string
requiredThe slug of the environment to create.
Response
200 - application/json
message
string
requiredworkspace
string
requiredenvironment
object
required