ReferenceV1
Approve Device
Approve a device code (called from web UI). Creates a CLI session and device token, stores token in Redis for the polling CLI to retrieve.
Header Parameters
authorization?|
X-API-Key?|
Cookie Parameters
vai_token?|
Request Body
application/json
userCode*string
Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/auth/device/approve" \ -H "Content-Type: application/json" \ -d '{ "userCode": "string" }'{
"status": "pending"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}