Atomically rotate an API key. Old key is immediately invalidated.
Creates a new key with the same name, scopes, and rate limits.
The new key is returned once — store it immediately.
Requires: API key with write scope.
Args:
key_id: UUID of the API key to rotate (get from whoami())
Returns:
{"api_key": "bh_...", "key_id": "uuid", "prefix": "bh_...",
"scopes": ["read", "write"], "message": "Key rotated. Store securely."}
Note: The old key stops working immediately. Update BOREALHOST_API_KEY
right away.
Connector