Create ABHA address using mobile

Hi @adnan_360 @Shubhanshu_Shukla @depakpant @neha.parnami @ishantd

I am using API
https://dev.abdm.gov.in/cm/v1/apps/registration/details

To create ABHA address using mobile number.
If I am passing email id as blank.
I am getting response as
"Email address must not be blank"
While on phrsbx.abdm.gov.in the email id is not compulsory.

Can you guide me for the same?

Thanks

@manjoorkapoor,

Please help me with you request body and payloads of the calls you have made before.

thanks

@Shubhanshu_Shukla

Hello, I am currently working on creating an address using a mobile number. For this, I am making the following API call:

API Endpoint:
https://phr.abdm.gov.in/api/v1/phr/registration/generate/otp

Body Parameters:
{“value”:“CeBfwLqlkmqW2vNeMvpD2ZPbTdPVwTlB2+zd5XmMo6FXGnnKOFCuxeK9I/P/hKroc2ykKf+yHJH0K9f0EsmuclmJ0jST0m42KagscOLBj8I2ALoilfnHuFysePvvqmLRX8klVsdLDNzAdWlZc8KtSgR4Oxyp4RpraUVrW5pKUNCtSlUMhidYakmc05FqusN2gxZHVY1tukbHGGsyqHG70WeB1Cg2bDh6klRQpY7vlDWw+NpRVnndIYigCLn3CBY/VRyFLL3NPgRFKhR7+EN2v1ev2lxVKVaKUJp1vDXkWbzMcNRj6yvcc6a8yH0zs3pAbi41ngqPxvXppyGfD9sm1A==”}

Headers:

  • Content-Type: application/json
  • Accept: application/json
  • Authorization: Bearer [AccessToken]

If you have any insights or suggestions regarding this API call, I would greatly appreciate your assistance.

Thank you.

I’m encountering the 400 error. Can you please confirm the exact format for the Authorization header and the expected content for the ‘value’ field in the body?

Hi
For Authorization header, you have to add Keyword Bearer then access token

1 Like