@IntegrationSupport :
I am trying to get the authToken using this api .
```
curl -X 'POST' \
'https://hpridsbx.abdm.gov.in/api/v2/auth/authPassword' \
-H 'accept: application/json' \
-H 'Authorization: eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NzAyNTA0OTUsImlhdCI6MTY3MDI0OTg5NSwianRpIjoiYTRhYzhlZDUtN2U1Zi00NmQ1LWIyZmYtNWQ5NmFhMTA4MzczIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI4OGU3NWMyMC1mMzcyLTQxZmYtOTc3OS0zZjJkMjhlMDVjYzciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNjQ5Iiwic2Vzc2lvbl9zdGF0ZSI6Ijc2NzI0ZWEzLTA2MmUtNDU1Yi05MWI2LWFlMzBmZjk5ZTZlNSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiU0JYXzAwMTY0OSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDE2NDkiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjUyIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMTY0OSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuNTIifQ.EGYwXeFhDhOBql3piAC9rXxUhKODLz5FixVOYGNAP5Tx2PtaCkipOdgLJgZyaewG5__1pykIjl5ccxdAvCyoZj7FFpwUmdZJkhHlQcGJwMm2iNyCzGp-RmIDGb_9HKXysn1F_wQhahh_ZOWMfIO0LJbXGgP3bzcHKcvuHgLPlU0BVuJKnVCBtTfhOGrpw1rbrFiaLcEwth7S5-q2Mc_O5HK5tm4qeCZMPQzt_jzusxDkMOjQ880OmGqxuwoB51NDSwojQNg1BXjVVpBJnMSTVZy4Km_7Wfog17ymm1X0C49XQY63ea1678WgtFQXQDBKwhe5AUxeU4W1DhKHH_RHYg' \
-H 'X-HIP-ID: SBX_001649' \
-H 'Content-Type: application/json' \
-d '{
"hprId": "ashishyogi1990@hpr.abdm",
"password": "{{my-password}}"
}'
```
Response : cache-control: no-cache,no-store,max-age=0,must-revalidate
connection: Keep-Alive
content-length: 0
content-security-policy: frame-src ‘self’ https://www.google.com; frame-ancestors ‘self’ https://www.google.com; object-src ‘none’;
date: Mon,05 Dec 2022 14:18:59 GMT
expires: 0
keep-alive: timeout=5,max=100
pragma: no-cache
server: Apache/2.4.6 (CentOS)
strict-transport-security: max-age=31536000 ; includeSubDomains
vary: Origin,Access-Control-Request-Method,Access-Control-Request-Headers
x-content-type-options: nosniff
x-custom-security-header: default-src ‘none’; img-src ‘self’; script-src ‘self’ style-src ‘self’
x-frame-options: DENY
x-webkit-csp: default-src ‘self’
x-xss-protection: 1; mode=block
Am I missing any parameters ?
Please let me know if we need to pass the CLIENT-ID and CLIENT-SECRET as well ?
CLIENT-ID : SBX_001649
As per the API Swagger : In order to have access to Healthcare Professional ID APIs, Your ClientId
* required must have hid role in gateway. So if you want access to these APIs then please request it in your Ayushman Bharat Digital Mission (ABDM) on-boarding request.
If this is missing for the CLIENT-ID , please add the required permission corressponding to CLIENT-ID