Skip to main content
POST
/
compute
/
v1
/
environments
Create compute environment
curl --request POST \
  --url https://api.case.dev/compute/v1/environments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "document-review-prod"
}
'
{
  "id": "env_abc123",
  "name": "document-review-prod",
  "slug": "document-review-prod",
  "domain": "document-review-prod-lawfirm.case.dev",
  "isDefault": true,
  "status": "active",
  "createdAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
name
string
required

Environment name (alphanumeric, hyphens, and underscores only)

Example:

"document-review-prod"

Response

Environment created successfully

id
string

Unique environment identifier

name
string

Environment name

slug
string

URL-friendly slug derived from name

domain
string

Unique domain for this environment

isDefault
boolean

Whether this is the default environment

status
enum<string>

Environment status

Available options:
active,
inactive
createdAt
string<date-time>

Environment creation timestamp