Start the device authorization flow
POST
/oauth/device_authorization
const url = 'https://api.hedgespecialty.com/api/v1/oauth/device_authorization';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hedgespecialty.com/api/v1/oauth/device_authorizationRFC 8628. Form-encoded client_id (+ optional scope). Returns a device_code to poll /oauth/token with (grant_type=urn:ietf:params:oauth:grant-type:device_code), plus a user_code and verification_uri the broker opens to approve. Codes expire after 15 minutes; poll no faster than the returned interval.
Responses
Section titled “Responses”Device authorization ({device_code, user_code, verification_uri, verification_uri_complete, expires_in, interval})
Unknown client