401 Unauthorized error while generating Aadhaar OTP on registered mobile number

  1. Get the aut token
    https://dev.abdm.gov.in/gateway/v0.5/sessions
    response is success

“realm_access”: {
“roles”: [
“offline_access”,
“hip”
]
},
“resource_access”: {
“SBX_000499”: {
“roles”: [
“uma_protection”
]
},
“account”: {
“roles”: [
“manage-account”,
“manage-account-links”,
“view-profile”
]

  1. Generate Aadhaar OTP on registered mobile number
    https://dev.abdm.gov.in/v1/registration/aadhaar/generateOtp

Also what’s the correct base url (for sandbox) to call the api’s. I see many places different urls are being used.
dev.abdm.gov.in
dev.nhdm.gov.in
healthidsbx.abdm.gov.in/api

Resolved as part of

hi @vivekkranjan

its working fine for our clinet id and client secret

Thanks
Areeb