APIs for creating ABHA Number using Aadhar and Driving License in PHR App

We are checking ABHA number creation with KYC process with Swagger - Login and Registration APIs.
But we didn’t find any specific ABHA number creation with KYC as aadhar, DL related API.
Below is the swagger reference.
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml

Please confirm: Do we have any specific P1 - APIs for creating ABHA Number using Aadhar and Driving License?

@IntegrationSupport @Ramandeep1

@sankalp Are you doing PHR mobile app integration or M1 integration?

1 Like

We are doing PHR P1 integration
but we did not find any API to create Abha using the Aadhaar number in PHR login and registration Swagger

@IntegrationSupport

Please use the existing API given in swagger for building PHR mobile application. Registration by mobile or email API.

I try the below curl but get error

curl --location 'https://dev.abdm.gov.in/cm/v1/apps/generate/otp' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Nzk2MzM0NDMsImlhdCI6MTY3OTYzMjg0MywianRpIjoiMzg3YmI2MGMtMDI2OC00N2ZmLTk2YmUtYmUzMzAyNWFmMDNlIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhYmJlNTM5OS1kODE3LTQwZjAtYmNiMi0wNDY1YmQ3NzA5NmMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNjk5Iiwic2Vzc2lvbl9zdGF0ZSI6ImE2Y2VlYWFkLTlhMDYtNDU5NC04YjMwLTdkNDI3MmZmZWE2NiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxNjk5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42OC42MCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiY2xpZW50SWQiOiJTQlhfMDAxNjk5IiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDE2OTkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4LjYwIn0.jV47BGlffBYnM-b1VrkGuBQfSqfNXo-y0rC1MJcLIbSBVGfBsk2muUBflViE1XFjLCdFCVj9qmneuODTEt3stzphxSexJUa_pXwZB35dbC4i-WZ6aut696ojcAm9uHI95kApftIrtwZt4R1TGWezDzwTCbMDKgWU66J0ggmrvQ-vkkK_En4Cq4e6uMMVnfn17bGct2BmSKoAJk4rx_DldDPm2qBR75ek1WSlyz8Cjpjr7x-mj-SIzUL0pMFuMdRnTkxAYt8PeIetzSu0ZHb1bfpxFDEKIAtcMEft9YMHfdpFcBP_9SNc9gQcuHObdzRSII_dswSr2NYmLiODWHJp2g' \
--header 'Cookie: TS011c04bd=01445fed049801216db3b71d134bd8857d0d4dca80174ffa0029066028c1c2f72e984f86d9f801aa25aed451a00fd32878e7af0308' \
--data '{
  "value":"KUhGKM9WTknTyLjsyDWeF3zjPNUroNPD4IqI3CbUmgpRyn8Mfk6GKqEeRZ4trMsaEt1XTPKCI+ZVi+9A9AfW3ZaTHkUMHi2XJ87gKVN/JwBX66DIPlTqqS3WrouiSHY/35VImxqTHH1UJzsGrKgJivc5BBUM+Wg41qb50nTS8g3OhcvWXb0YfZj0kZ6o1YY4a+cWIv+4NBPhGIjJS/7sbQlxu+U4exHc8Ru04WjAolqVEyapuDLJDrTm4H+gH4X5r1aQK99MYWsOPD2KgIxNCJaC68h85OczNKfYlTTwOc8Y+cpt0xPe+SdKmzwDUlmNwnRrvkLxooNc5cGC/uI3fQ==",
  "authMode": "AADHAAR_OTP"
}'

{

"error": {

    "code": 1510,

    "message": "Mobile/Email '#Input' value is invalid."

}

}

Can you give me the curl of the API used to start aadhaar OTP verification start API and aadhaar OTP Verify API and other sequence APIs that call in the sandbox PHR App?

Because I did not find this API in Registration by mobile or email API.

https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml
Go and check this link for
Registration by mobile or email API

@IntegrationSupport
there are total 5 API’s in Registration by mobile or email API in swagger
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml

  1. /v1/apps/create/phrAddress
  2. /v1/apps/registration/details
  3. /v1/apps/generate/otp
  4. /v1​/apps​/resend​/otp
  5. /v1/apps/validate/otp

In these 5 APIs, I did not find any API for ABHA number creation using aadhaar

Please Help us or Update Swagger for aadhaar number creation or provide use new swagger or postman

@sankalp Please use following API for creating ABHA number using Aadhaar.

  1. /v1/registration/aadhaar/generateOtp
  2. v1/registration/aadhaar/verifyOTP
  3. v2/registration/aadhaar/checkAndGenerateMobileOTP
  4. v1/registration/aadhaar/verifyMobileOTP
  5. v1/registration/aadhaar/createHealthIdWithPreVerified

You can use swagger link of M1 to consume these specific
API’s only:
(https://app.swaggerhub.com/apis-docs/abdm.abha/abha-service/1.0)
(In this link please scroll down and check for Registration with Aadhaar)

1 Like