---
title: "Regenerate Api Key"
method: POST
path: "/v1/auth/regenerate-api-key"
---

# Regenerate Api Key

`POST /v1/auth/regenerate-api-key`

Regenerate API key for authenticated user (JWT protected).

SECURITY:
- Old key is immediately invalidated
- New key is returned once (user must save it)
- Rate limited to prevent abuse (1 per 2 hours)
- All user state is preserved (rate limits, subscription, billing)
- Uses frontend JWT authentication (not API key)

This is safe because all restrictions are tied to user_id, not the API key.

## Response `200`

Successful Response

- unknown

---

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