Device auth API
Understand the browser-based auth flow used by the CLI.
Device auth API
The CLI uses device authorization so a terminal can sign in through a browser.
Most users should call littledemo login instead of these endpoints directly.
Start device flow
textPOST /api/v1/device/code
The response includes a device code, a user code, and verification URLs.
Poll for token
textPOST /api/v1/device/token
The CLI polls this endpoint until the browser approves the code.
Browser approval
textPOST /api/v1/device/authorize
This endpoint is called by the browser page after the signed-in user approves the code.
For scripts and CI, use LITTLEDEMO_API_KEY instead.