---
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.

---

[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/revisions/789e6ad3796c/schema)
