Initialize Device Authorization Flow
Start the OAuth2 Device Authorization flow for CLI/server-side applications.
Responses
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
{
"device_code": "string",
"user_code": "string",
"verification_uri": "https://example.com",
"verification_uri_complete": "https://example.com",
"expires_in": 0,
"interval": 0
}errorstring
― invalid_request
― unauthorized_client
― access_denied
― invalid_scope
error_descriptionstring
{
"error": "invalid_request",
"error_description": "string"
}Body application/x-www-form-urlencoded
client_idstringRequired
scopestringRequired
Example
profile offline_accessaudiencestringRequired
Example
https://api.yotoplay.comPOST
/oauth/device/codeServer URL: https://login.yotoplay.com
Request Body
curl "https://login.yotoplay.com/oauth/device/code"