---
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 — The flag to indicate if the environment variable's value is shown on the UI.

## Response `201`

Environment variable created.

- object
  - `uuid` string

## Other responses

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

---

[API](https://skmtc.net/coollabsio/apis/coolify.md) · [All operations](https://skmtc.net/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coollabsio/coolify/versions/08be5dc8e729/schema)
