Skip to main content
POST
Create an environment

Behavior

  • Accepts organization keys only. A scoped key gets 403 insufficient_capability.
  • Creates an environment of kind sandbox. The live environment exists already and cannot be created.
  • The slug must match ^[a-z0-9_]{1,16}$ and must not be one of live, test, internal, admin, api, nexio, draft, all. It cannot change later.
  • An org can have at most 5 sandboxes. The sixth gets 400 environment_limit_reached.
  • The body is at most 4 KiB and accepts only slug and name.
See Environments.

Authorizations

Authorization
string
header
required

The org's platform API key.

Body

application/json
name
string | null
required
slug
string
required

Response

Created

created_at
string
required
id
string
required
kind
string
required
slug
string
required
name
string
Last modified on November 30, 2026