Docs
Sign in

Start a CLI sign-in; answers a code to confirm in the browser.

POST/api/v1/auth/device/start

Keynone

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

hostnamestringrequired

This machine's name, shown to the person who approves the sign-in as the CLI's own words (not checked). 1 to 64 characters. Matches ^[\x20-\x7e]+$.

osenumrequired

This machine's operating system, shown beside the name when the code is approved. One of macos, linux, windows, other.

workspaceIdstring

The workspace to sign in to. Left out, the one the code is approved in; another workspace's id is 404. At least 5 characters.

Response.

201 Created · JSON object

422 validation_failed
Each schema error appears in details.