---
title: "Add External Store Endpoint"
method: POST
path: "/user/secrets/add-external-store"
tags: ["user"]
---

# Add External Store Endpoint

`POST /user/secrets/add-external-store`

Add a new secrets store

## Request body

- AddExternalStoreRequest
  - `tenant_id` string, required
  - `type` 'aws', required
  - `name` string, nullable
  - `is_writable` boolean
  - `make_default` boolean
  - `options` object, required

## Response `200`

Successful Response

- AddExternalStoreResponse
  - `store_id` string, required

## Other responses

- `403` — `{"detail": "Invalid API Key"}`
- `404` — `{"detail": "Tenant not found"}`
- `422` — Validation Error

---

[API](https://skmtc.dev/tenzir/apis/tenzir-platform-api.md) · [All operations](https://skmtc.dev/tenzir/apis/tenzir-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tenzir/tenzir-platform-api/revisions/1c6c33bb8ba3/schema)
