Generate QPAT token

Use this endpoint to generate and return QuickPlay Authorization Token (QPAT).

post/v1/qpat

Request

  • Base URL
    https://auth.api.sandbox.cleeng.com
  • URL
    https://auth.api.sandbox.cleeng.com/v1/qpat
  • Auth
    API key in header Authorization

Headers

Authorizationstring

A JWT token to authorize the request. Example: Bearer {jwt}

Content-Typestring

Request body

customerIdinteger required

Unique customer identifier registered in Cleeng. customerId must match the customerId in the JWT token.

deviceIdstring required

Device identifier provided by system integrator. deviceId is later incorporated in the accessToken.

Response

200

tokenTypestring
expiresIninteger
accessTokenstring

Example response

{
  "tokenType": "JWE",
  "expiresIn": 43200,
  "accessToken": "eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0.Gl3aeqYSoemFyEg2QuzACQ.zUaYNBixLXryoj52.VxNa7BgkjshqL8_DZwDTlmrlHKKdFrqFAY0h5oDwju6zDSG9usq-xYln7IvlOWM1bBFsW0YJJOEIAbtYjXh8VHeFB_YLUCZAJmuyPvQcAdYBCYOSGUDeFO7qumJdMDvC30xIL9VPwiUEzF-HFXPS2nvAA2ech91mgr45vjN6AkXsRta9gFfMp4K7TvwZJ27LPea0ZHxyfCrBaEYZRQucNeNMxKFx5RGP2XiNngbQr7EixD4allJNcfzuF2gfd2KxRMhsZRmeKGp-Z_UK3me7b5T_dEMLBCRpi0x4HT1gkWHr9lZVV2ZbZnbNHLfqve0VFLA53vEnjxyExj_jHB1NykDfaZ0jmwnqZnHG9CEha0mJcySDLuOmCBiDM-f1QJUKqb2Rqc8sGbH5c6rf8W6xaMjaY40S16qhztZ-MRazHrtfJAcqFeWMBWSaTr0q5vjt1wrrY1I_BTIoi6A7OhCazGDfyJV6E1Hmjkh8CV22v780x0PPr6rwnHDkbbuNgNUTrZuAFtFa5mHA-xzh-bNf3O6ruv7kT_8jKEK-ZG7pBRTljC-YYQNAwLO3wQBK8dpoDZ3TZEFKmQszNPd04RE0t6eDo-Oxdmzt-pfFZA.",
  "entitledPackages": [
    {
      "name": "urn:package:dtc:monthly",
      "expiry": 1735603200
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.