Yoto Developers
Initialize Device Authorization Flow

Initialize Device Authorization Flow

Start the OAuth2 Device Authorization flow for CLI/server-side applications.

Responses

Device code responseapplication/json
device_codestringrequired
The device verification code
user_codestringrequired
The code displayed to the user
verification_uristring · urirequired
The URL where the user should enter the user_code
verification_uri_completestring · uri
The verification URL with the code included
expires_inintegerrequired
The lifetime of the device code in seconds
intervalintegerrequired
Minimum polling interval in seconds

Body application/x-www-form-urlencoded

client_idstringRequired
scopestringRequired
Exampleprofile offline_access
audiencestringRequired
Examplehttps://api.yotoplay.com
POST
/oauth/device/code
Server URL: https://login.yotoplay.com
Request Body
curl "https://login.yotoplay.com/oauth/device/code"