---
title: "Rotate Api Key"
method: POST
path: "/api/v1/developer/api-keys/{key_id}/rotate"
tags: ["Internal: API Keys"]
---

# Rotate Api Key

`POST /api/v1/developer/api-keys/{key_id}/rotate`

Rotate API key - delete old and generate new.

## Path parameters

- `key_id` string, required

## Response `201`

Successful Response

- ApiKeyRead
  - `id` string, required
  - `name` string, required
  - `created_by` string, uuid, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/openwearables/apis/open-wearables-api.md) · [All operations](https://skmtc.net/openwearables/apis/open-wearables-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openwearables/open-wearables-api/versions/37c1c527cd8f/schema)
