Regenerate API key
regenerate_api_keyReplaces an API key's secret with a new key that keeps the same name, scope, and monitor. The old key stops working immediately, and the new plaintext key appears only in this result.
Instructions
Requires the admin scope or higher. Replaces an API key's secret: a new key, with a new id and the same name, scope and (for a tracing key) monitor. The old key stops working immediately wherever it is held, including when it is the calling key. No expiry stays no expiry; an expiring key gets a fresh 90 days, capped at the calling key's expiry. Keys the old key created keep working (no cascade). Refused (403, with max_scope) for a key scoped above the caller's. The plaintext key appears only in this result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key_id | Yes | UUID of the key to regenerate, from list_api_keys. |