InternetDataInternetData

Device authorization

POST
/oauth/device_authorization

Starts the device flow. Show the user_code to the person and send them to verification_uri; verification_uri_complete has the code already embedded, which is what to open if you can open a browser at all.

Then poll /oauth/token, no faster than interval seconds.

Request Body

application/x-www-form-urlencoded

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://internetdata.io/oauth/device_authorization" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'client_id=string'
{
  "device_code": "string",
  "user_code": "string",
  "verification_uri": "string",
  "verification_uri_complete": "string",
  "expires_in": 0,
  "interval": 0
}
{
  "error": "string",
  "error_description": "string"
}
{
  "error": "string",
  "error_description": "string"
}