Skip to main content
POST
/
projects
/
{project_reference}
/
env-vars
Create Environment Variable
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/env-vars \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "DATABASE_URL",
  "value": "postgresql://localhost:5432/mydb"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "key": "<string>",
  "value": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt

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

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