Skip to main content

After ABHA creation - verify email OTP (optional)

Verifies the OTP sent by *After ABHA creation - send OTP to verify email (optional)* and links the email address to the newly created ABHA.

POST/abha/api/v3/enrollment/auth/byAbdm

Endpoint: POST /abha/api/v3/enrollment/auth/byAbdm

Flow: Create ABHA - Aadhaar OTP - step 6 of 8

  • Previous: After ABHA creation - send OTP to verify email (optional)
  • Next: After ABHA creation - get ABHA address suggestions

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-enrol", "email-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

200

Success: Email Update - Verify OTP-positive flow; Email Update - Verify OTP-OTP EXPIRED

txnIdstring
authResultstring
messagestring
accountsobject[]
400

Bad Request (request validation failed): Invalid Transaction Id; Invalid Scope; Invalid AuthMethod

Error codes for this module

txnIdstring
timestampstring
401

Unauthorized (invalid / expired gateway token, X-token or benefit access): Invalid access token

Everything returns 401

codestring
messagestring
descriptionstring
500

Internal Server Error: Unclassified Authentication Failure (generic)

Error codes for this module

codestring
messagestring
descriptionstring