---
title: "Import Legacy Env Secrets Route"
method: POST
path: "/v1/envs/{env_id}/secrets/import-legacy"
---

# Import Legacy Env Secrets Route

`POST /v1/envs/{env_id}/secrets/import-legacy`

## 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/import-legacy`
- Auth: none declared

Import legacy repo env-var secrets as env-scoped dashboard secrets.

Legacy repo env-var rows are read-only inputs here; IDE versions still
using the repo env-var APIs are unaffected. Conflicting keys import only
with an explicit source selection from the preview.

## Path parameters

- `env_id` string, required

## Request body

- LegacySecretImportInput: Dashboard payload resolving conflicting keys for legacy secret import.
  - `selections` object

## Response `200`

Successful Response

- object

## 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)
