---
title: "Generate OTP"
method: POST
path: "/abdm/na/v1/profile/login/init"
---

# Generate OTP

`POST /abdm/na/v1/profile/login/init`

Generates an OTP for login. Supports login via Aadhaar number, mobile number, ABHA number, and ABHA address.

## Headers

- `X-Pt-Id` string
- `X-Partner-Pt-Id` string
- `X-Hip-Id` string

## Request body

- PhrLoginOTPRequest
  - `identifier` string — The identifier for the selected login method. Index of the search API response for search method
  - `method` 'search' | 'phr_address' | 'abha_number' | 'mobile' | 'aadhaar_number' — The method used for login.
  - `otp_system` 'abdm' | 'aadhaar' — The otp system used for login.
  - `txn_id` string — Transaction id received in the search api response

## Response `200`

OK

- PhrLoginOTPResponse
  - `hint` string
  - `txn_id` string — Transaction ID for the next API call.

## Other responses

- `4XX`
- `5XX`

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/versions/9ea23456f722/schema)
