CLI Tokens
Start a browser login for the CLI
POST
RFC 8628 device authorization request. Public; returns a short user code to confirm in the browser. No credential is returned. Available only when the server enables browser login (DEVICE_AUTH_ENABLED=true); otherwise returns 503 device_auth_disabled.
application/x-www-form-urlencoded- body
client_id*"supercheck-cli"Value in
"supercheck-cli"client_name?stringLength
length <= 64cli_version?stringLength
length <= 32hostname?stringLength
length <= 64Device authorization started.
application/json- response
device_code*stringSecret polled by the CLI. Never display or log it.
user_code*stringverification_uri*stringFormat
uriverification_uri_complete?stringFormat
uriexpires_in*integerinterval*integercurl -X POST 'https://app.supercheck.io/api/auth/device/code' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'client_id=supercheck-cli'Example Response
{ "device_code": "string", "user_code": "string", "verification_uri": "http://example.com", "verification_uri_complete": "http://example.com", "expires_in": 0, "interval": 0}