---
title: "Generate authentication token"
method: POST
path: "/auth/v1/token/generate"
---

# Generate authentication token

`POST /auth/v1/token/generate`

## Request body

- object
  - `identifierType` 'MOBILE' | 'EMAIL' | 'USERNAME', required — Type of identifier
  - `identifierValue` string, required — Identifier value (e.g., mobile number)
  - `deviceId` string, required — Unique device ID
  - `brand` string, required — Brand name

## Response `200`

Token generated successfully

- object
  - `token` string, required — Authentication token
  - `expiresIn` integer — Token expiry in seconds

## Other responses

- `400` — Bad request
- `401` — Unauthorized

---

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