Login via ABHA number - verify Aadhaar OTP
Verifies the Aadhaar OTP for ABHA-number login. Returns the user X-token (token) and a refresh token.
Endpoint: POST /abha/api/v3/profile/login/verify
Flow: Login - ABHA Number (Aadhaar OTP) - step 2 of 2
- Previous: Login via ABHA number - send Aadhaar OTP
- Next: none (last call of this flow)
Headers (plus Authorization: Bearer <gateway token>):
| Header | Required | Description |
|---|---|---|
| REQUEST-ID | yes | Unique UUID for every request. |
| TIMESTAMP | yes | Current UTC timestamp in ISO-8601 format. |
Request body for this use case:
| Field | Value / Type | Required | Description |
|---|---|---|---|
scope |
["ABHA-login", "Aadhaar-verify"] |
yes | Scope that selects this use case. Send exactly the values listed for this API. |
authData |
object | yes | Authentication payload for this use case. |
authData.authMethods |
["OTP"] |
yes | Authentication method used in this step. |
authData.otp |
object | yes | OTP authentication block. |
authData.otp.txnId |
string | yes | Transaction ID returned by the previous step of this flow. |
authData.otp.otpValue |
string | yes | OTP received by the user, RSA-encrypted. |
Responses
200Success: Verify Login Via ABHA Number - Using Aadhaar OTP
authResultstringmessagestringtokenstringexpiresInintegerrefreshTokenstringrefreshExpiresInintegeraccountsobject[]accounts.ABHANumberstringaccounts.preferredAbhaAddressstringaccounts.namestringaccounts.statusstringaccounts.profilePhotostring400Bad Request (request validation failed): Verify Login via ABHA Number using Aadhaar OTP - Invalid OTP Value
401Unauthorized (invalid / expired gateway token, X-token or benefit access): Invalid Credentials (generic)
codestringdescriptionstringmessagestring404Not Found: User Not Found; Resource Not Found
errorobjecterror.codestringerror.messagestring