Skip to main content
POST
https://punchplay.tv
/
api
/
platform
/
v1
/
oauth
/
token
Exchange OAuth codes or refresh tokens
curl --request POST \
  --url https://punchplay.tv/api/platform/v1/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'code=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'code_verifier=<string>' \
  --data 'client_secret=<string>'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "expires_in": 123,
  "refresh_expires_in": 123,
  "scope": "<string>"
}

Body

grant_type
enum<string>
required
Available options:
authorization_code
client_id
string
required
code
string
required
redirect_uri
string<uri>
required
code_verifier
string
required
client_secret
string | null

Response

Token response

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