---
title: "Create secret storage"
method: POST
path: "/v1/projects/{project_id}/secret_storages"
tags: ["secret_storage"]
---

# Create secret storage

`POST /v1/projects/{project_id}/secret_storages`

## Path parameters

- `project_id` integer, required

## Request body

- SecretStorage
  - `id` integer
  - `name` string, required
  - `type` 'vault' | 'internal', required
  - `scope` 'project' | 'global', required
  - `project_id` integer
  - `config` SecretStorageConfig, required
    - `vault` VaultSecretStorageConfig
      - `url` string, required
      - `role` string
      - `mount_path` string, required
      - `path_prefix` string, required
      - `auth_method` string, required
      - `gcp_auth_type` string
      - `service_account_email` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `201`

Created

## Changes

- **2026-07-17** `46b857cb8713` — 1 info
  - endpoint added
- **2020-09-16** `591b8469378b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/caraml-dev/apis/mlp-api/changes/v1/projects/:project_id/secret_storages/post.md)

---

[API](https://skmtc.dev/caraml-dev/apis/mlp-api.md) · [All operations](https://skmtc.dev/caraml-dev/apis/mlp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caraml-dev/mlp-api/revisions/46b857cb8713/schema)
