Liftbay
API referenceAuth

Poll for the CLI token

POST
/v1/auth/device/token

Returns 400 authorization_pending until the user approves, 403 access_denied if they deny, 400 expired_token after expiry.

Request Body

application/json
  1. body
deviceCode*string

Response Body

OK

application/json
  1. response
token*string

CLI session token (lbs_…), sent as a Bearer token

user*
curl -X POST "https://example.com/v1/auth/device/token" \  -H "Content-Type: application/json" \  -d '{    "deviceCode": "string"  }'
{  "token": "string",  "user": {    "id": "string",    "email": "string",    "name": "string",    "avatarUrl": "string"  }}