Skip to main content
POST
/
compute
/
v1
/
environments
curl -X POST "https://api.case.dev/compute/v1/environments" \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

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

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
name
string
required

Environment name (alphanumeric, hyphens, and underscores only)

Pattern: ^[a-zA-Z0-9_-]+$
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