---
title: "Regenerate My Api Key"
method: POST
path: "/users/me/api-key"
tags: ["users"]
---

# Regenerate My Api Key

`POST /users/me/api-key`

Generate a new API key for the caller in the active organization.

Any existing key for this (user, organization) is replaced and stops
working immediately. The response is the only time the full key is
available.

## Response `200`

Successful Response

- GeneratedApiKey — A freshly minted key. The only response that ever contains the secret.
  - `api_key` string, required
  - `key_prefix` string, required

---

[API](https://skmtc.dev/ionworks/apis/fastapi.md) · [All operations](https://skmtc.dev/ionworks/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ionworks/fastapi/revisions/7337a3cbdaf2/schema)
