Manage environment variables for your project. Variables are scoped per stage (Live or Test).
/organizations/:orgId/projects/:projectId/environments?stage=productionList all environment variables for a stage.
{
"environments": [
{
"id": 1,
"stage": "production",
"name": "DATABASE_URL",
"value": "mysql://...",
"createdAt": "2026-03-20T...",
"updatedAt": "2026-03-20T..."
}
]
}/organizations/:orgId/projects/:projectId/environmentsCreate a new environment variable.
{
"stage": "production",
"name": "API_SECRET",
"value": "sk_live_abc123"
}{
"environment": {
"id": 2,
"stage": "production",
"name": "API_SECRET",
"value": "sk_live_abc123",
"createdAt": "2026-03-20T...",
"updatedAt": "2026-03-20T..."
}
}/organizations/:orgId/projects/:projectId/environments/:envIdUpdate an environment variable. Both name and value are optional.
{
"value": "sk_live_updated_value"
}{
"environment": {
"id": 2,
"stage": "production",
"name": "API_SECRET",
"value": "sk_live_updated_value",
"createdAt": "2026-03-20T...",
"updatedAt": "2026-03-24T..."
}
}/organizations/:orgId/projects/:projectId/environments/:envIdDelete an environment variable.