---
title: "Atomically rotate a hosted tenant API key"
method: POST
path: "/tenant/api-keys/rotate"
---

# Atomically rotate a hosted tenant API key

`POST /tenant/api-keys/rotate`

## Request

- Base URL: `https://api.gravityads.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gravityads.dev/tenant/api-keys/rotate`
- Auth: HTTP bearer

## Request body

- object
  - `identifier` string, required
  - `label` string
  - `scopes` string[]
  - `ttl_days` integer
  - `reason` string

## Response `200`

Tenant API key rotated

- object

---

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