Skip to main content
POST
Create Environment Variable

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Organization → Settings → API Keys. User-session JWTs are not accepted by /v1/replica endpoints.

Path Parameters

environmentId
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.