Skip to main content
POST
Create environment variable

Authorizations

Authorization
string
header
required

Organization or personal API key from Settings → API Keys.

Headers

X-Replicas-Api-Version
enum<string>

API version. 2026-10-07 returns snake_case responses. See versioning.

Available options:
2026-10-07

Path Parameters

environment_id
string
required

Environment UUID, or the literal string global for the org's Global environment.

Body

application/json

Request body for creating an environment variable.

key
string
required

Variable name

value
string
required

Variable value (encrypted at rest)

personal_override_allowed
boolean

Team/Global variables only. Allows source-backed personal environments to override this inherited key.

Response

Variable created

environment_variable
object
required

An environment variable. Values are encrypted at rest and decrypted on read.