---
title: "Auth Token"
method: POST
path: "/auth/v1/generate/"
tags: ["auth"]
---

# Auth Token

`POST /auth/v1/generate/`

No-op api-view, which simply extends the common HeidiAPIView

## Request body

- GetToken
  - `merchant_key` string, required — Your merchant API key.

## Response `200`

- TokenStatus
  - `status` string, required — Always "success" for valid keys.
  - `data` NestedData, required
    - `token` string, required — JWT bearer token to use in the Authorization header.

## Other responses

- `401`

---

[API](https://skmtc.net/heylight/apis/heidipay-checkout-api.md) · [All operations](https://skmtc.net/heylight/apis/heidipay-checkout-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/heylight/heidipay-checkout-api/revisions/c51570cfc888/schema)
