---
title: "Generate Authentication Token"
method: POST
path: "/auth/v1/web/token/generate"
---

# Generate Authentication Token

`POST /auth/v1/web/token/generate`

Generate authentication for web application.

## Request body

- object
  - `identifierType` 'MOBILE' | 'EMAIL' | 'USERNAME.', required — Identifier used for token generation
  - `mobile` string — Mobile number of the customer. Either mobile number or email ID is required to authenticate with username.
  - `email` string — Email ID of the customer. Either mobile number or email ID is required to authenticate with username.
  - `password` string, required — Password to login to the app.
  - `confirmPassword` string, required — Reenter the password.
  - `brand` string, required — Name of the brand/org for which authentication needs to be verified.
  - `deviceId` string, required — Unique ID of the device from which the customer has generated the token.
  - `identifierValue` string, required — Identifier value

## Response `200`

200

- object
  - `status` object
    - `success` boolean
    - `code` integer
    - `message` string
  - `auth` object
    - `token` string
    - `key` unknown
  - `user` object
    - `appRegistered` boolean
    - `sessionId` string
    - `role` string
    - `userRegisteredForPassword` boolean

## Other responses

- `400` — 400

---

[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)
