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

# Create Env

`POST /databases/{uuid}/envs`

Create env by database 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_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.
- `422` — Validation error.

## Changes

- **2026-03-19** `23cc94cc8715` — 1 info
  - endpoint added
- **2026-03-16** `385ee693a76d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/coollabsio/apis/coolify/changes/databases/:uuid/envs/post.md)

---

[API](https://skmtc.dev/coollabsio/apis/coolify.md) · [All operations](https://skmtc.dev/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coollabsio/coolify/revisions/789e6ad3796c/schema)
