Request Device Code
Changed onRequest a device code to start the device authorization flow.
post/oauth/device/code
Request
- Base URLhttps://api.dashboard.knotapi.com
- URLhttps://api.dashboard.knotapi.com/oauth/device/code
- Authnone required
Request body application/x-www-form-urlencoded
Example request
{
"client_id": "9f3c2a1e-6b7d-4e8f-a2c4-5d6e7f8a9b0c",
"scope": "webhooks:read webhooks:write"
}Response
Successful request.
Example response
{
"device_code": "def50200a1b2c3d4e5f6",
"user_code": "WDJBMJHT",
"verification_uri": "https://api.dashboard.knotapi.com/oauth/device",
"verification_uri_complete": "https://api.dashboard.knotapi.com/oauth/device?user_code=WDJBMJHT",
"expires_in": 600,
"interval": 5
}Changes
- info
endpoint added
- info