Generates a device code.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/{instanceId}/{applicationId}/oauth2/device/code HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| instanceId | string | Yes | The instance ID. | idaas_ue2jvisn35ea5lmthk267xxxxx |
| applicationId | string | Yes | The application ID. | app_mkv7rgt4d7i4u7zqtzev2mxxxx |
| scope | string | No | The authorization scope. | xxx |
Response parameters
Examples
Sample success responses
JSONformat
{
"device_code": "xxxxx",
"user_code": "xxxxx",
"verification_uri": "https://example.com/authorize/device",
"verification_uri_complete": "https://example.com/authorize/device?user_code=\nxxxx",
"expires_in": 1200,
"expires_at": 1653288641,
"interval": 5
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2023-10-24 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
