Getting status 401 while trying to access the urls

We are getting the below error while trying to trigger the url . Also

please note the client Id : SBX_002663
Registered mail id: nizam@shmsolutions.in

curl request tried :

curl --location --request POST ‘https://healthidsbx.abdm.gov.in/api/v2/registration/adhaar/generateOtp’ \

–header ‘accept: /’ \

–header ‘Accept-Language: en-US’ \

–header ‘Content-Type: application/json’ \

–header ‘Authorization: Bearer token’ \

–data-raw '{

“aadhaar”: “adhaarNumber”

}’

response :
{
“timestamp”: “2023-03-03T09:16:42.279+0000”,
“status”: 401,
“error”: “Unauthorized”,
“message”: “Unauthorized”,
“path”: “/api/v2/registration/adhaar/generateOtp”
}

Please help on this @IntegrationSupport @Ramandeep1

@IntegrationSupport @Ramandeep1 can you please provide an update on above issue Thanks

It’s working in my case.
Try this URL:
{{baseUrl}}/v2/registration/aadhaar/generateOtp

Thank you @prakharmohan

1 Like