---
title: "Changes to Add a new SSH key"
method: POST
path: "/users/{selected_user}/ssh-keys"
---

# Changes to Add a new SSH key

`POST /users/{selected_user}/ssh-keys`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 15 revisions.

- **2026-07-13** `d344164ecb11`: 2 warning, 7 info

## Changes

- **2026-07-13** `d344164ecb11`: 2 warning, 7 info
  - removed the request property `allOf[subschema #2: SSH Account Key]/owner/allOf[subschema #2: Account]/username`
  - removed the optional property `allOf[subschema #2: SSH Account Key]/owner/allOf[subschema #2: Account]/username` from the response with the `201` status
  - api tag `SSH` added
  - api tag `Ssh` removed
  - added the new optional `query` request parameter `expires_on`
  - added the new optional request property `allOf[subschema #2: SSH Account Key]/expires_on`
  - added the new optional request property `allOf[subschema #2: SSH Account Key]/fingerprint`
  - added the optional property `allOf[subschema #2: SSH Account Key]/expires_on` to the response with the `201` status
  - added the optional property `allOf[subschema #2: SSH Account Key]/fingerprint` to the response with the `201` status

---

[Operation](https://skmtc.dev/atlassian/apis/bitbucket-api/docs/users/:selected_user/ssh-keys/post.md) - [API](https://skmtc.dev/atlassian/apis/bitbucket-api.md) - [Page](https://skmtc.dev/atlassian/apis/bitbucket-api/changes/users/:selected_user/ssh-keys/post)
