Regenerate API key
regenerate_api_keyRequires 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. |