Poll device authorization
POST
/auth/device/poll
const url = 'https://example.com/auth/device/poll';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"device_code":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/auth/device/poll \ --header 'Content-Type: application/json' \ --data '{ "device_code": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DevicePollRequest
object
device_code
required
Device Code
string
Examplegenerated
{ "device_code": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Any of:
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>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}