id, name, environment, and other metadata remain unchanged. The key must belong to the authenticated identity or its entity, must currently be active, and must not be the sandbox master key. Optionally set overlap_seconds to keep the previous secret valid for a grace period after rotation, useful for zero-downtime credential swaps.curl --location '/api-key-rotations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "01J5X8PMKW3RNVBQE2D7F9GHAT"
}'{
"message": "API key rotated successfully",
"status": "success",
"data": {
"id": "01J5X8PMKW3RNVBQE2D7F9GHAT",
"name": "Production Server Key",
"environment": "live",
"identity_id": "01J5X8PMKW3RNVBQE2D7F9GHBT",
"public_key": "pk_live_9c3b2d8e4f1a5b6c",
"secret_key": "sk_live_4f1a5b6c9c3b2d8e",
"last_reset": 1754651520000,
"expires_at": null,
"status": "active",
"overlap_expires_at": null
}
}