Getting unauthorized response on ABHA enrolment v3 api : api/v3/enrollment/request/otp

While trying to execute enrollment using Aadhar OTP via V3 API: “api/v3/enrollment/request/otp”, we are getting the error response as Unauthorized Response (401). Kindly help us with this, attaching the request and response details below.

curl --location ‘https://healthidsbx.abdm.gov.in/api/v3/enrollment/request/otp’ \

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

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

–header ‘REQUEST-ID: 34935c59-f57e-4304-a318-3aa0b146c426’ \

–header ‘TIMESTAMP: 2023-03-23T05:04:12.171+0000’ \

–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Nzk1NDcyODQsImlhdCI6MTY3OTU0NjY4NCwianRpIjoiNTY1YzA0MWQtYTMyNC00OTVhLWIzYzEtMWNmMGEyOTk0MGNkIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkYTNlN2RjYi1hNDNkLTQzOTMtOWRmNi1lMjFlZTc4YTZhOTIiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAyNzg5Iiwic2Vzc2lvbl9zdGF0ZSI6IjFiY2YyODYxLWQ4ZGYtNGY2MC1iNDA5LTI0MzJjMzViMGY1YSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDI3ODkiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDI3ODkiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjE0NyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDI3ODkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY5LjE0NyJ9.FsSIu8jWvOffiO56R1DdKMN7tUUFcjpa-aZ-whSXBy3CtxuQKfkHjGCEEboCg9VoBytLbFK-DafXt1rrfZIkFBFddCJVdZDF4Jay80l5q4JFT9oUu-dBkAo51G2YhiStF_ygEwAJWFzod17X39zLCmrqkzlgEODzcV5Usriv5mCsniuLzYDYtXQv24H5cuLlP_Gxr7LyTdR0K3D8MqkWKh2lHtGHvPmsAfdjj5663bcUjWNGcgEh1riKEJGQnkl-j_xRnOyKt5aLmHa_5jyRWEZ1cXEM37qHoPSmN-zTF_8Zev0YyopOEUauc_jEHkM_0fxEnZCv5naHMYkmYpjz5w’ \

–data '{

“txnId”: “”,

“scope”: [

"abha-enrol"

],

“loginHint”: “aadhaar”,

“loginId”: “A2Ch20RHQ+EPy8bYoObJhadNR/zBTnRw60L69NYQiRRUDTUyT+/SJIbvRLJUZdflCt/dnUnxEVn8F4j53fPa/5dzd9bPNjSxjon8qh32MdtSzwFRRF1ZD2mdNbuZTxOzZze8f9B8Z28XJnofLlaqOXUHZTq/4qg+jWY6XcyINw7omSIHluFO4Ds4KG4dNJuRcvt13HHn8IBiI7sB136L1KqjS1LJoMFaW+D5dXJE1WwujN+NKi7160IYwakdD03ir+UPrYkB5OZdnjJ9Pn9hWeFo1xmhXl7oSaPGX0FXRkXwLMk0/T1pZwl6QhqWUjgDrXQIUxfv6qLG3VGMri+kmqseskya8fnwjPI7L3RByNb0ajuOpeOwEEbrIitkVxDvzkqLzsj7fWGFgOK3yqCK2UjHCrmtvckO/6GFUBgzYqq6WgeHOoDMfAIXNt6ZCHJgxKPVwV8nBJlTxbrovc5HuE9eK0RHJnYvw4jsY5vOwZOqb/yIGQrIIPag5mX6Z5ThOyrMCF6ozkp7L5IhQyOSGS74/F5PFc9jNErfHSvqlncfDxiYJVk9fS9KlMVwc7UV6x12U8ZjpjcJ3DJEQkioz2AYaafjUIbXg6H72YgvGEWPNyaOODX+HoVdBCBXpXIr6FH6E/jRufQCt9gwwVnyiG/2aF3CeEwmmnbkZjlQawM=”,

“otpSystem”: “aadhaar”

}’

Response

{

"timestamp": "2023-03-23T05:05:04.167+0000",

"status": 401,

"error": "Unauthorized",

"message": "Unauthorized",

"path": "/api/v3/enrollment/request/otp"

}

@IntegrationSupport Kindly Help

Recommend to not use v3 until the swagger link is published. Please use the v1 & V2 APIs for ABHA creation for now.

Getting this error.

@IntegrationSupport

same error am facing @IntegrationSupport