https://healthidsbx.abdm.gov.in/api/v2/account/aadhaar/generateOTP gives Unauthorized error

Hello Team,

When I call https://healthidsbx.abdm.gov.in/api/v2/account/aadhaar/generateOTP endpoint using postman where I have passed Bearer AuthToken in header as X-Token key. I have got this token using https://dev.abdm.gov.in/gateway/v0.5/sessions method. I keep getting below response.
{
“timestamp”: “2023-05-08T10:12:38.520+0000”,
“status”: 401,
“error”: “Unauthorized”,
“message”: “Unauthorized”,
“path”: “/api/v1/account/aadhaar/generateOTP”
}

Please guide me with the correct way if I’m following any wrong flow.

Please check the token expiry time. Even I also faced this error. Please hit the sessions API and then hit GenerateOTP call

Thanks for the response. Yes I tried the same. I first called Sessions API and then called made GenerateOTP call.

Share your Contact details …

vishvam.mistry@eclinicalworks.com