Skip to main content
POST
Create Environment Variable

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, ID, or other supported project reference.

Query Parameters

environment_id
string<uuid>
required

Environment ID containing the variable.

Body

application/json
key
string
required

Environment variable key. Must start with a letter or underscore and contain only letters, numbers, and underscores.

Minimum string length: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
value
string
required

Environment variable value.

Response

Environment variable created

id
string<uuid>
required
key
string
required
value
string
required