Skip to content
The Yoto Developer Challenge is on, with $10,000 to win!

Initialize device authorization flow

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

Responses

Device code response application/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_id string Required
scope string Required
Example profile offline_access openid
audience string Required
Example https://api.yotoplay.com
POST
/oauth/device/code
Server URL: https://api.yotoplay.com
Authorization (bearerAuth)
Request Body
Terminal window
curl "https://api.yotoplay.com/oauth/device/code"
--header "Authorization: Bearer [YOUR_TOKEN]"