Skip to content

Poll device authorization

POST
/auth/device/poll
curl --request POST \
--url https://example.com/auth/device/poll \
--header 'Content-Type: application/json' \
--data '{ "device_code": "example" }'
Media typeapplication/json
DevicePollRequest
object
device_code
required
Device Code
string
Examplegenerated
{
"device_code": "example"
}

Successful Response

Media typeapplication/json
Any of:
DevicePollPendingResponse
object
interval
Any of:
integer
status
required
Status
string
Allowed value: pending
Example
{
"status": "pending"
}

The device code expired or was already used.

Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{
"detail": "example"
}

The approving account is not allowed on this server.

Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{
"detail": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}