Generate Device Code and User Code (OAuth Device Flow)
post
/oauth2/v1/device
Request
Supported Media Types
- application/x-www-form-urlencoded
Root Schema : schema
Type:
Show Source
object
-
client_id:
string
Unique ID of the client.Example:
a5bf5db7f6c43b47b1eae399c68319c4
-
response_type:
string
Type of response from the server (device_code)Example:
device_code
-
scope:
string
Scope for which the Device Code and User Code is requested.Example:
http://abccorp.com/quote
Response
Supported Media Types
- application/json
200 Response
Device Code and User Code generated
Root Schema : device
Type:
object
Generated Device Code and User Code (OAuth Device Flow)
Show Source
-
device_code:
string
Device Code used to obtain the Access Token
-
expires_in:
number
Expiry time of the Device Code and User Code in seconds
-
user_code:
string
User Code used by user to approve OAuth Device Flow.
-
verification_uri:
string
Verification URI where User authenticates and approves User Code.
400 Response
Invalid request
Root Schema : error
Type:
object
Error message that appears during Access Token generation
Show Source
-
error:
string
Error values that are based on the OAuth specification
-
error_description:
string
Detailed error messages
401 Response
Unauthorized client
Root Schema : error
Type:
object
Error message that appears during Access Token generation
Show Source
-
error:
string
Error values that are based on the OAuth specification
-
error_description:
string
Detailed error messages