Skip to main content
Imports multiple environment variables at once from a .env file format string. Existing variables with the same key are overwritten.

Authentication

Requires a valid Bearer token.

Path Parameters

id
string
required
Project ID (UUID).

Request Body

content
string
required
Environment variables in .env file format. Each line should be in KEY=value format.
{
  "content": "DATABASE_URL=postgresql://user:pass@host:5432/db\nAPI_SECRET=sk-secret-123\nNODE_ENV=production"
}

Response

Returns 200 OK on success.

Errors

StatusDescription
400Bad Request — invalid .env format
401Unauthorized — missing or invalid token
404Not Found — project does not exist or you do not have access