API referenceAuth
Start CLI sign-in
POST
The CLI shows userCode and opens verificationUriComplete; the user approves in the dashboard while the CLI polls /device/token.
application/json- body
clientName?stringLength
length <= 100Default
"Liftbay CLI"OK
application/json- response
deviceCode*stringSecret the CLI polls with. Never shown to the user.
userCode*stringShort code the user confirms in the browser, e.g. WDJB-MJHT
verificationUri*stringverificationUriComplete*stringexpiresIn*numberinterval*numbercurl -X POST "https://example.com/v1/auth/device" \ -H "Content-Type: application/json" \ -d '{}'{ "deviceCode": "string", "userCode": "string", "verificationUri": "string", "verificationUriComplete": "string", "expiresIn": 0, "interval": 0}