Skip to content

Approve a CLI login

POST
/auth/device/approve
curl --request POST \
--url https://api.krakenkey.io/auth/device/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "userCode": "BCDF-GHJK" }'

Creates an API key for the signed-in user and hands it to the waiting CLI. Requires a dashboard session; API keys cannot approve logins.

Media typeapplication/json
object
userCode
required

User code shown by the CLI

string
Example
BCDF-GHJK

API key limit reached

Called with an API key

Not found or expired