Poll a CLI browser login
POST
/auth/device/token
const url = 'https://api.krakenkey.io/auth/device/token';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"deviceCode":"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/auth/device/token \ --header 'Content-Type: application/json' \ --data '{ "deviceCode": "example" }'Returns status pending, slow_down, denied or expired, or approved with a new API key. The key is returned once.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
deviceCode
required
Device code from POST /auth/device/code
string
Examplegenerated
{ "deviceCode": "example"}Responses
Section titled “Responses”Current login status