Skip to content

Poll device auth

POST
/api/v1/auth/device/token
curl --request POST \
--url https://app.ayna.com/api/v1/auth/device/token \
--header 'Content-Type: application/json' \
--data '{ "device_code": "example" }'

Poll for device authorization result. Returns credentials when authorized.

Media typeapplication/json
DeviceTokenPayload
object
device_code
required
Device Code

Device code from start response

string

Example generated

{
"device_code": "example"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}