How to get access token for ABHA service

I have tried for Access Token but I got Error - code - HIS-400 and HIS-1002 response. I didn’t get Access Token.

Follwing API Document : abha-API-services

In document mentioned this success response :

Base URL:

https://healthidsbx.abdm.gov.in/api/

Method :

POST

End Point:

v1/auth/authPassword

Access Token get from this API :

dev.abdm.gov.in/gateway/v0.5/sessions

Used Client ID is :

SBX_002158

body :

       {
            "healthIdNumber": "91-5668-XXXX-XXXX",
            "password": "XXXXXXXXXXX"
       }

But I got ERROR Resonse. How do i get access token for ABHA service.

The response like ,

{
  "code": "HIS-400",
   "message": "Request is invalid. Please enter the correct data.",
   "details": [
       {
          "message": "The field value should not be empty.",
           "code": "HIS-1002",
          "attribute": {
          "key": "healthId",
          "value": null
        }
      }
     ]
 }

I passed healthIdNumber in body but here error mentioned key is healthId Is it correct ?

Hi @raguct25,

We have tested the flow the API /v1/auth/authPassword is working fine now

Hi @shobhitgunwant thank you it’s working fine.

but document mentioned body property name : healthIdNumber

Hi @shobhitgunwant

I have tried your healthId and password it’s work fine.

But I used my healthId and password it doesn’t work.

Is need any register ?

I have tried my healthId and password but got this kind of error

{
 "code": "HIS-422",
  "message": "Unable to process the current request due to incorrect data entered.",
  "details": [
  {
   "message": "No user account can be found with the ABHA Number/Enrolment Number provided. ",
   "code": "HIS-1008",
   "attribute": null
   }
 ]
} 

Tried this POST API endpoints:

https://healthidsbx.abdm.gov.in/api/v1/auth/authPassword

Body content:
{
“healthId”: “91-5668-2448-6641”,
“password”: “XXXXXXXXX”
}

My Abha number :

91-5668-2448-6641

How to do i resolve this error…