---
title: "Create org shared environment variable"
method: POST
path: "/v1/org/env-vars"
tags: ["Organization"]
---

# Create org shared environment variable

`POST /v1/org/env-vars`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/org/env-vars`
- Auth: HTTP bearer

## Request body

- CreateOrgEnvVarRequest
  - `key` string, required
  - `value` string, required
  - `environments` string[]
  - `sensitive` boolean
  - `comment` string

## Response `201`

Org shared env var created

- OrgEnvVar
  - `id` string, uuid
  - `key` string
  - `environments` string[]
  - `sensitive` boolean
  - `comment` string, nullable
  - `value` string, nullable
  - `version` integer
  - `linked_vaults` string[]
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/ae109b496830?raw)
