---
title: "Issue a new API key (old one stops working immediately)"
method: POST
path: "/v1/me/api-key/rotate"
tags: ["Account"]
---

# Issue a new API key (old one stops working immediately)

`POST /v1/me/api-key/rotate`

## Request

- Base URL: `https://api.stackdata.io`
- URL: `https://api.stackdata.io/v1/me/api-key/rotate`
- Auth: one of:
  - API key in cookie `sd_session`
  - HTTP bearer

## Response `200`

The new key; boards move with it.

- object
  - `api_key` string

## Other responses

- `401`: No valid session (cookie or Bearer token).

---

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