API → Oauth2Request a device access token
hidden

Parameters

Name

Type

Req.

  • bodyapplication/x-www-form-urlencoded

    object
    optional
    Object Properties
    • client_id

      string / UUID
      optional
    • device_code

      string / UUID
      optional
    • grant_type

      string
      optional
      Possible values
      • urn:ietf:params:oauth:grant-type:device_code:  An OAuth 2.0 Device Authorization Grant.

Returns

NaN Unknown

post
/oauth2/device/token
$ curl -X POST "https://api.zoo.dev/oauth2/device/token" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/x-www-form-urlencoded" \
	--data '{
  "client_id": "6b3fe781-b4aa-45d4-8c64-31725c31e15e",
  "device_code": "d2d18b50-f9c1-44eb-b045-a07cc53c87a4",
  "grant_type": "urn:ietf:params:oauth:grant-type:device_code"
}'