---
title: "Changes to Create a new user secret"
method: POST
path: "/api/v2/users/{user}/secrets"
---

# Changes to Create a new user secret

`POST /api/v2/users/{user}/secrets`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 308 revisions.

- **2026-09-02** `4700c8f6c359`: 2 info
- **2026-05-04** `6865e861885f`: 1 info

## Changes

- **2026-09-02** `4700c8f6c359`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `409`
- **2026-05-04** `6865e861885f`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/coder/apis/coder-api/docs/api/v2/users/:user/secrets/post.md) - [API](https://skmtc.dev/coder/apis/coder-api.md) - [Page](https://skmtc.dev/coder/apis/coder-api/changes/api/v2/users/:user/secrets/post)
