API referenceAuth
Poll for the CLI token
POST
Returns 400 authorization_pending until the user approves, 403 access_denied if they deny, 400 expired_token after expiry.
application/json- body
deviceCode*stringOK
application/json- response
token*stringCLI 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" }}