Start a device login
/auth/device no token neededOAuth 2.0 device authorization (RFC 8628). Show userCode to the user, open verificationUriComplete and poll POST /auth/token every interval seconds.
Request body
clientNamestringrequired
Responses
200Codes for the CLI
deviceCodestringrequireduserCodestringrequiredverificationUristringrequiredverificationUriCompletestringrequiredexpiresInnumberrequiredintervalnumberrequired
400Invalid input
error"not_found" | "conflict" | "invalid" | "limit_reached" | "forbidden" | "http" | "internal"requiredmessagestringrequired
curl -X POST "https://wortwerk.li/api/v1/auth/device" \
-H "Content-Type: application/json" \
-d '{"clientName":"wortwerk CLI on laptop"}'{
"deviceCode": "Gk2v…",
"userCode": "BCDF-GHJK",
"verificationUri": "…",
"verificationUriComplete": "…",
"expiresIn": 0,
"interval": 0
}