Skip to main content
POST
https://punchplay.tv
/
api
/
platform
/
v1
/
auth
/
device
/
code
Create a device code
curl --request POST \
  --url https://punchplay.tv/api/platform/v1/auth/device/code \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "<string>",
  "client_secret": "<string>",
  "scope": "profile:read playback:read playback:write events:read"
}
'
{
  "user_code": "<string>",
  "device_code": "<string>",
  "verification_uri": "<string>",
  "verification_uri_complete": "<string>",
  "verification_uri_qr": "<string>",
  "expires_in": 123,
  "scope": "<string>"
}

Body

application/json
client_id
string
required
client_secret
string | null
scope
string

Space-delimited platform scopes. If omitted, the app's allowed scopes are used.

Example:

"profile:read playback:read playback:write events:read"

Response

Device code created.

user_code
string
required
device_code
string
required
verification_uri
string<uri>
required
verification_uri_complete
string<uri>
required
verification_uri_qr
string
required
expires_in
integer
required
scope
string
required