---
title: "Create Env"
method: POST
path: "/applications/{uuid}/envs"
tags: ["Applications"]
---

# Create Env

`POST /applications/{uuid}/envs`

Create env by application UUID.

## Path parameters

- `uuid` string, required

## Request body

- object
  - `key` string — The key of the environment variable.
  - `value` string — The value of the environment variable.
  - `is_preview` boolean — The flag to indicate if the environment variable is used in preview deployments.
  - `is_literal` boolean — The flag to indicate if the environment variable is a literal, nothing espaced.
  - `is_multiline` boolean — The flag to indicate if the environment variable is multiline.
  - `is_shown_once` boolean — If true, the saved value is hidden in the UI and API responses. MCP never returns environment variable values.

## Response `201`

Environment variable created.

- object
  - `uuid` string

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `404` — Resource not found.

---

[API](https://skmtc.dev/coollabsio/apis/coolify.md) · [All operations](https://skmtc.dev/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc.dev/coollabsio/apis/coolify/revisions/5fe936a59290?raw)
