---
title: "Changes to Rotate an API key"
method: POST
path: "/org/api_keys/{id}/rotate"
---

# Changes to Rotate an API key

`POST /org/api_keys/{id}/rotate`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 123 revisions.

- **2026-10-26** `1323a8a9aefb`: 1 info
- **2026-10-16** `03b369edee49`: 1 info
- **2026-06-14** `ec2442338fec`: 1 breaking
- **2026-06-14** `2be40fefde48`: 1 info

## Changes

- **2026-10-26** `1323a8a9aefb`: 1 info
  - added the required property `allOf[#/components/schemas/ApiKey]/last_used_at` to the response with the `201` status
- **2026-10-16** `03b369edee49`: 1 info
  - added the optional property `allOf[#/components/schemas/ApiKey]/policy` to the response with the `201` status
- **2026-06-14** `ec2442338fec`: 1 breaking
  - removed the required property `allOf[#/components/schemas/ApiKey]/status` from the response with the `201` status
- **2026-06-14** `2be40fefde48`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/kernel/apis/kernel-api/docs/org/api_keys/:id/rotate/post.md) - [API](https://skmtc.dev/kernel/apis/kernel-api.md) - [Page](https://skmtc.dev/kernel/apis/kernel-api/changes/org/api_keys/:id/rotate/post)
