---
title: "Generate QPAT token"
method: POST
path: "/v1/qpat"
---

# Generate QPAT token

`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`

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

## Headers

- `Authorization` string
- `Content-Type` string

## Request body

- object
  - `customerId` integer, required: Unique customer identifier registered in Cleeng. `customerId` must match the `customerId` in the JWT token.
  - `deviceId` string, required: Device identifier provided by system integrator. `deviceId` is later incorporated in the `accessToken`.

## Response `200`

200

- object
  - `tokenType` string
  - `expiresIn` integer
  - `accessToken` string
  - `entitledPackages` object[]
    - `name` string
    - `expiry` integer

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `422`: 422
- `500`: 500

---

[API](https://skmtc.dev/cleeng/apis/authentication-api.md) - [All operations](https://skmtc.dev/cleeng/apis/authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/authentication-api/revisions/e41656c81b43?raw)
