Enroll a connector with its single-use token and public key
POST
/connectors/enroll
const url = 'https://api.krakenkey.io/connectors/enroll';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example","publicKey":"example","version":"0.2.0","os":"linux","arch":"amd64"}'};
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/enroll \ --header 'Content-Type: application/json' \ --data '{ "token": "example", "publicKey": "example", "version": "0.2.0", "os": "linux", "arch": "amd64" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
Enrollment token from the dashboard (kkce_…)
string
publicKey
required
Standard base64 (padded) of the raw 32-byte Ed25519 public key
string
version
required
string
Example
0.2.0os
required
string
Example
linuxarch
required
string
Example
amd64Responses
Section titled “Responses”Enrolled
Invalid enrollment token