---
title: "Create Team Shared Env"
method: POST
path: "/team/envs"
tags: ["Shared Environment Variables"]
---

# Create Team Shared Env

`POST /team/envs`

Create a shared environment variable for the current team (type=team).

## Request body

- object
  - `key` string, required
  - `value` string, nullable
  - `is_literal` boolean
  - `is_multiline` boolean
  - `is_shown_once` boolean
  - `comment` string, nullable

## Response `201`

Environment variable created.

## Other responses

- `401` — Unauthenticated.
- `409` — Environment variable already exists.
- `422` — Validation error.

## Changes

- **2026-07-22** `71a39cd460a7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/coollabsio/apis/coolify/changes/team/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.dev/coollabsio/apis/coolify/revisions/ef835681a3fe?raw)
