Error
A valid request URL is required to generate request examples{
"device_code": "req_id_0987654321",
"user_code": "BZ4K8",
"verification_uri": "https://auth.example.com/activate",
"interval": 5,
"expires_in": 900,
"obn_custom_metadata": {
"consent_validation_method": "OAUTH2",
"consent_message": "You will be redirected to https://auth.example.com/activate. Provide your details there to grant consent",
"consent_status": "PENDING_VALIDATION"
}
}Consent
Request device authorization code
Request a device authorization code for OAuth2 device flow
POST
/
oauth2
/
device
/
code
Error
A valid request URL is required to generate request examples{
"device_code": "req_id_0987654321",
"user_code": "BZ4K8",
"verification_uri": "https://auth.example.com/activate",
"interval": 5,
"expires_in": 900,
"obn_custom_metadata": {
"consent_validation_method": "OAUTH2",
"consent_message": "You will be redirected to https://auth.example.com/activate. Provide your details there to grant consent",
"consent_status": "PENDING_VALIDATION"
}
}Body
application/x-www-form-urlencoded
Response
200 - application/json
Device authorization code generated successfully
The device verification code
Example:
"req_id_0987654321"
The user verification code
Example:
"BZ4K8"
The URI where the user should enter the user_code
Example:
"https://auth.example.com/activate"
The polling interval in seconds
Example:
5
The expiration time in seconds
Example:
900
Show child attributes
Show child attributes