Liftbay
API referenceAuth

Start CLI sign-in

POST
/v1/auth/device

The CLI shows userCode and opens verificationUriComplete; the user approves in the dashboard while the CLI polls /device/token.

Request Body

application/json
  1. body
clientName?string
Lengthlength <= 100
Default"Liftbay CLI"

Response Body

OK

application/json
  1. response
deviceCode*string

Secret the CLI polls with. Never shown to the user.

userCode*string

Short code the user confirms in the browser, e.g. WDJB-MJHT

verificationUri*string
verificationUriComplete*string
expiresIn*number
interval*number
curl -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}