API Keys
Rename Key
Rename an API key (update its label only).
Only the name is mutable here — tier/permissions are immutable for
the life of a key (rotate to change them). 404 if the key isn’t the
caller’s. No auth-cache eviction needed: the cached auth payload doesn’t
carry the label, so a rename never changes an access decision.
PATCH
Rename Key
Authorizations
Issue from /v1/keys (or admin-issued for enterprise tier).
Headers
Path Parameters
Body
application/json
New human-readable label (null clears it)
Maximum string length:
100Previous
Rotate an API key with a zero-downtime overlap windowIssue a **replacement** key with the same label, tier, and permissions as the original, and schedule the original to expire in 24h so a running bot can swap keys without any downtime.
The new raw key is returned **once** in this response — store it immediately. The old key keeps authenticating until its overlap window closes, then auto-expires (401 `KEY_EXPIRED`).
The replacement counts against your per-account key limit while the old key is still in its overlap window.
Next
Rename Key