---
title: "Rotate Api Key"
method: POST
path: "/api/auth/rotate-key"
tags: ["auth"]
---

# Rotate Api Key

`POST /api/auth/rotate-key`

## Request

- Base URL: `https://api.modelwatch.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.modelwatch.app/api/auth/rotate-key`
- Auth: HTTP bearer

Rotate the workspace API key. Old key is invalidated immediately.

## Response `200`

Successful Response

- SignupResponse
  - `workspace_id` string, required
  - `email` string, required
  - `message` string, required
  - `api_key` string, nullable

---

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