Start a device-authorization login
API Docs with browser clientBegin a device-authorization login: creates a pending request and returns a browser confirmation URL plus a token to poll for the result.
x-api-key<token>application/json- body
Input used to begin a device-authorization login.
client?Optional metadata about the client requesting access.
clientId?stringIdentifier of the requesting client. Known ids render as a verified client on the confirm page; unknown ids are allowed but shown as unverified.
1 <= length <= 128variant?"headless"Device-authorization variant. Reserved for future flows (e.g. a typed user_code); currently only the headless capability-URL variant is supported.
"headless""headless"codeChallenge*stringPKCE S256 code challenge: BASE64URL(SHA256(codeVerifier)).
^[A-Za-z0-9_-]{43}$codeChallengeMethod*unknownPKCE challenge method; only S256 is supported.
OK
application/json- response
Details required to drive a device-authorization login.
authReqToken*stringOpaque handle for this login request; used to poll status.
uuidconfirmUrl*stringBrowser URL where the user approves or cancels the request.
uriexpiresAt*stringISO timestamp after which the request can no longer be used.
date-timepollIntervalMs*integerSuggested delay between consecutive status calls.
-9007199254740991 <= value <= 9007199254740991curl -X POST 'https://example.com/v4/auth/oauth/device/start' \ -H 'Content-Type: application/json' \ -d '{ "codeChallenge": "string", "codeChallengeMethod": "S256"}'{ "authReqToken": "2d8c8d17-3354-49f8-9a0d-976ce43b3e16", "confirmUrl": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z", "pollIntervalMs": -9007199254740991}