---
title: "Rotate API Key"
method: POST
path: "/my/settings/rotate_api_key"
tags: ["My Settings"]
---

# Rotate API Key

`POST /my/settings/rotate_api_key`

Rotate your API key. Returns the new token. Warning: Old token will stop working immediately.

## Response `200`

successful

## Changes

- **2026-01-27** (v1) `b6d6849481da` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hackclub/apis/hackatime-api/changes/my/settings/rotate_api_key/post.md)

---

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