Replace a connector's public key, signed by the current key
POST
/connectors/rotate
const url = 'https://api.krakenkey.io/connectors/rotate';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"connectorId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","timestamp":"2026-10-10T14:00:00Z","nonce":"example","signature":"example","newPublicKey":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.krakenkey.io/connectors/rotate \ --header 'Content-Type: application/json' \ --data '{ "connectorId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "timestamp": "2026-10-10T14:00:00Z", "nonce": "example", "signature": "example", "newPublicKey": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
connectorId
required
string format: uuid
timestamp
required
RFC 3339 UTC with second precision
string
Example
2026-10-10T14:00:00Znonce
required
Base64url (no padding) of at least 16 random bytes, at most 64 characters
string
signature
required
Standard base64 of the 64-byte Ed25519 signature
string
newPublicKey
required
The new key: standard base64 (padded) of the raw 32-byte Ed25519 public key
string
Responses
Section titled “Responses”Key replaced
Invalid connector credentials