---
title: "POST /orgs/{id}/rotate-key"
method: POST
path: "/orgs/{id}/rotate-key"
---

# POST /orgs/{id}/rotate-key

`POST /orgs/{id}/rotate-key`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/orgs/{id}/rotate-key`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `id` string, required: Unique organization identifier

## Request body

- object: Master key rotation parameters

## Response `200`

OK

- object: Rotated master key credentials
  - `masterKey` string, required: Newly generated master API key

---

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