Create environment

http
POST /projects/{project_reference}/environments

Create an environment. Requires project.environments.manage.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.

Request body

FieldTypeRequiredDescription
namestringYesEnvironment name (e.g., staging, production). New environments are private.

Responses

StatusDescription
201Environment created successfully
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error