Set an environment variable
POST
https://api.shadw.cloud/v1/projects/{project}/envAdd or update an environment variable. Sensitive values are encrypted at rest (ChaCha20-Poly1305).
Authentication
AuthorizationbearerTokenA platform API key (hive_…, created under Settings → API Keys) or a short-lived JWT minted with POST /v1/token. An API key scopes the request to the team it was created under.
Path parameters
projectstringRequiredThe project name.
Body parameters
keystringRequiredVariable name.
valuestringRequiredValue (sealed at rest when sensitive).
target"production" | "preview" | "all"OptionalWhich environments it applies to.
sensitivebooleanOptionalEncrypt at rest and mask in the UI.

