Environments

Create an environment

Create an API-managed environment.

MethodPathRequired permissions
POST/v1/environments
write:environments
Token access
API key
Supported.
CLI user token
Supported.
Sandbox token
Unavailable. Not supported by sandbox tokens, even with permissions.ellipsis enabled.

Higher permission levels include lower levels: read < write < delete.

Sessions can reference its name or ID.

curl -X POST "https://api.ellipsis.dev/v1/environments" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "environment": {
    "ellipsis": {
      "kind": "environment",
      "name": "api-environment",
      "metadata": {
        "labels": [],
        "annotations": {}
      }
    },
    "repositories": [
      {
        "name": "api-repo"
      }
    ],
    "compute": {},
    "hooks": {},
    "mcp_servers": [],
    "variables": []
  }
}'

Request

Example request body
{
}

Body parameters

environmentEnvironmentDocument-Inputrequired

The environment's definition.

Response

Example response, 201
{
}

On this page

No Headings
Schedule a demo