---
title: "Upsert Env External Secret Record"
method: POST
path: "/v1/envs/{env_id}/secrets"
---

# Upsert Env External Secret Record

`POST /v1/envs/{env_id}/secrets`

## Request

- Base URL: `https://api.tabtabtab.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tabtabtab.ai/v1/envs/{env_id}/secrets`
- Auth: none declared

Create or rotate an env-scoped external secret, encrypted in DB.

## Path parameters

- `env_id` string, required

## Request body

- EnvExternalSecretInput: Dashboard payload for creating or rotating an env-scoped secret.
  - `key` string, required
  - `value` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tabtabtab/apis/tabtabtab-api.md) - [All operations](https://skmtc.dev/tabtabtab/apis/tabtabtab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tabtabtab/apis/tabtabtab-api/revisions/73961d1e6152?raw)
