Tenant self service

Rotate the API key used on this request

Mints a replacement carrying over the calling key’s scope and retires the old one (optionally after a grace overlap). The new plaintext is returned exactly once.

POST
/api/v1/tenant/keys/rotate

Mints a replacement carrying over the calling key’s scope and retires the old one (optionally after a grace overlap). The new plaintext is returned exactly once.

Authorization

tenant-api-key
x-api-key<token>

Tenant API key (backend only — never expose to a browser)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/v1/tenant/keys/rotate" \  -H "Content-Type: application/json" \  -d '{}'
Empty