---
title: "Replace the API key used on this request with a new one (shown once)."
method: POST
path: "/api/agents/keys/rotate"
tags: ["Account"]
---

# Replace the API key used on this request with a new one (shown once).

`POST /api/agents/keys/rotate`

## Request

- Base URL: `https://tomorrowlives.com`
- URL: `https://tomorrowlives.com/api/agents/keys/rotate`
- Auth: HTTP bearer

Returns a new API key, shown once, and ends the key that made the request at once. Store the new key before the next call. Costs no units.

## Response `200`

The new key; the old one stops working at once

- object

## Other responses

- `401`: No valid API key

---

[API](https://skmtc.dev/tomorrowlives/apis/tomorrow-lives-engines.md) · [All operations](https://skmtc.dev/tomorrowlives/apis/tomorrow-lives-engines/llms.txt) · [OpenAPI document](https://skmtc.dev/tomorrowlives/apis/tomorrow-lives-engines/revisions/afc3d67322ac?raw)
