Supercheck LogoSupercheck
CLI Tokens

Start a browser login for the CLI

POST
/api/auth/device/code

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.

Request Body

application/x-www-form-urlencoded
  1. body
client_id*"supercheck-cli"
Value in"supercheck-cli"
client_name?string
Lengthlength <= 64
cli_version?string
Lengthlength <= 32
hostname?string
Lengthlength <= 64

Response Body

Device authorization started.

application/json
  1. response
device_code*string

Secret polled by the CLI. Never display or log it.

user_code*string
verification_uri*string
Formaturi
verification_uri_complete?string
Formaturi
expires_in*integer
interval*integer
Example Request
curl -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}