HPR Id and “Authentication”

Hi,

I created a Health Professional Id uisng aadhaar and also set a passowrd for that.
able to login in the web portal “https://hpridsbx.abdm.gov.in/

But the same credentials don’t work when I try using the v1 API https://hpridsbx.ndhm.gov.in/api/v1/auth/authPassword

Headers:
Access token:" "

Body:
{“domainName”:“sbx”,
“hprId”: “nilesh23”,
“idType”: “hpr_id”,
“password”: “”
}

It is giving 401 ( Unauthorized ) response. Tried lot of combinations of these field values, but get 401 response every time. Kindly confirm the bearer token is the Gateway Access token or we need to get some other token

Can someone help me …

Thanks&Regards,
Nilesh

Hi Nilesh,

Below the Login Flow :

  1. Hit the Auth init API to generate the txnID

  2. Then verify the password

User token will be retrun in response.
3. Call the Profile API to fetch the account details using the token in step 2.

Hi Rajesh,
Thank you for help , When I’m calling facility create
api(https://facilitysbx.ndhm.gov.in/v1.5/facility/create-facility) it give response code 200 ok,
but in response I get : Request Rejected
The requested URL was rejected. Please consult with your administrator.
Your support ID is: 14103002455035335088
can you please help for this .
also enclosing screenshot for your reffrence.

thank you,

Regards,
Nilesh

Hi Team,
Any update about this Issue ?