Skip to main content
POST
https://punchplay.tv
/
api
/
platform
/
v1
/
auth
/
device
/
token
Exchange a device code for tokens
curl --request POST \
  --url https://punchplay.tv/api/platform/v1/auth/device/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "<string>",
  "device_code": "<string>",
  "client_secret": "<string>",
  "device_id": "<string>",
  "device_name": "<string>",
  "linked_user_id": "<string>",
  "linked_username": "<string>"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "expires_in": 123,
  "refresh_expires_in": 123,
  "scope": "<string>",
  "username": "<string>"
}

Body

application/json
client_id
string
required
device_code
string
required
client_secret
string | null
device_id
string
device_name
string
linked_user_id
string
linked_username
string

Response

Device code approved and tokens issued.

access_token
string
required
refresh_token
string
required
token_type
enum<string>
required
Available options:
bearer
expires_in
integer
required
refresh_expires_in
integer
required
scope
string
required
username
string | null