---
title: "Regenerate API key"
method: POST
path: "/v1/auth/api-key"
tags: ["auth"]
---

# Regenerate API key

`POST /v1/auth/api-key`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/v1/auth/api-key`
- Auth: HTTP bearer

Generates a new API key and invalidates the current one.

## Response `200`

New API key

- object
  - `api_key` string
  - `key_prefix` string

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
