Show a pending CLI login before approving it
GET
/auth/device/{userCode}
const url = 'https://api.krakenkey.io/auth/device/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.krakenkey.io/auth/device/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”userCode
required
string
User code shown by the CLI
Responses
Section titled “Responses”Called with an API key
Not found or expired