Skip to main content
POST
/
projects
/
{slug}
/
environments
Create environment
curl --request POST \
  --url https://api.envless.cloud/projects/{slug}/environments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "staging",
  "slug": "staging"
}
'
{
  "success": true,
  "code": 201,
  "message": "Environment created.",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "projectId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.envless.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Personal access key from https://app.envless.cloud/keys. Pass as Authorization: Bearer ev_live_....

Path Parameters

slug
string
required

The project's slug.

Body

application/json
name
string
required
Example:

"staging"

slug
string
required
Example:

"staging"

Response

Environment created

success
boolean
Example:

true

code
integer
Example:

201

message
string
Example:

"Environment created."

data
object