Hi @shyam,
Please use below curl for Fatch- mode API:
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users/auth/fetch-modes’
–header ‘X-CM-ID: sbx’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTY0ODM1ODksImlhdCI6MTY1NjQ4Mjk4OSwianRpIjoiZTcwY2Y4N2YtZmQ2My00MDExLTkzMGYtYmUyZjFmZWZjZGIzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2YWU3NzlkNi1kZmY5LTRiZGMtYWI0ZC0xYzA1ODcwMDA2OTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJURVNUX1BIUiIsInNlc3Npb25fc3RhdGUiOiIwYjI2YmM4My01OGJiLTRiMTEtYjk2ZS0wMDA2NmE1MGFkM2IiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJPSURDIiwiaGlwIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiVEVTVF9QSFIiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4LjYxIiwiY2xpZW50SWQiOiJURVNUX1BIUiIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXRlc3RfcGhyIiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy42OC42MSJ9.TWXyJLYW-N8C8eOermChWHs2UegsaY6QaRYQEtHbnjQWnSo0rQuJViHaPDJZPnoXn8fwKtgtaQNCgBtsdEHGFLSin4YOUk0VDd4FyENYtHD0TDsHw2JfZyLFrFZ6ZUEukOl82cKx4YXveptRvHME6RsvEINNyxC5Af6NwcwcgBlhgiNHZ60cwUpj_oKT3zgn0Cny2hZyA-DPqT7z8_wIEY0faOcethik-10RedXC2xsK1qXLM-o–m0xNpV0M6MuQlUNq7mkicaBSS87tJ4YDOfHG0SFYjgqeOKO915jKmkJISv7TaP2T-dXyk_cSCUYgsJBZlb8gsuMA8voLz0QDA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01115a1c90b294755c4b3cd20d7a944c0a4c9cb4dcd81420fb938ae176db97065b14cfabe5bc8b950855f89cdad5fade8fa644d9ca’
–data-raw ‘{
“requestId”: “2054b3bb-e742-43b1-8792-ab783b5aa20d”,
“timestamp”: “2022-06-28T09:23:03.911000”,
“query”: {
“id”: “govinddeshmukh@sbx”,
“purpose”: “KYC_AND_LINK”,
“requester”: {
“type”: “HIP”,
“id”: “Govind_HIP”
}
}
}’
Please use below curl for Auth/init
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init’
–header ‘X-CM-ID: sbx’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTY0ODM1ODksImlhdCI6MTY1NjQ4Mjk4OSwianRpIjoiZTcwY2Y4N2YtZmQ2My00MDExLTkzMGYtYmUyZjFmZWZjZGIzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2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_cSCUYgsJBZlb8gsuMA8voLz0QDA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01115a1c90b294755c4b3cd20d7a944c0a4c9cb4dcd81420fb938ae176db97065b14cfabe5bc8b950855f89cdad5fade8fa644d9ca’
–data-raw ‘{
“requestId”: “c68b3b6a-225e-48ac-bcce-79b335fee6dc”,
“timestamp”: “2022-06-28T09:23:03.911000”,
“query”: {
“id”: “govinddeshmukh@sbx”,
“purpose”: “KYC_AND_LINK”,
“authMode”: “MOBILE_OTP”,
“requester”: {
“type”: “HIP”,
“id”: “Govind_HIP”
}
}
}’
Please use below API for Auth Confirm
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users/auth/confirm’
–header ‘X-CM-ID: sbx’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTY0ODM1ODksImlhdCI6MTY1NjQ4Mjk4OSwianRpIjoiZTcwY2Y4N2YtZmQ2My00MDExLTkzMGYtYmUyZjFmZWZjZGIzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2YWU3NzlkNi1kZmY5LTRiZGMtYWI0ZC0xYzA1ODcwMDA2OTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJURVNUX1BIUiIsInNlc3Npb25fc3RhdGUiOiIwYjI2YmM4My01OGJiLTRiMTEtYjk2ZS0wMDA2NmE1MGFkM2IiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJPSURDIiwiaGlwIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiVEVTVF9QSFIiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4LjYxIiwiY2xpZW50SWQiOiJURVNUX1BIUiIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXRlc3RfcGhyIiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy42OC42MSJ9.TWXyJLYW-N8C8eOermChWHs2UegsaY6QaRYQEtHbnjQWnSo0rQuJViHaPDJZPnoXn8fwKtgtaQNCgBtsdEHGFLSin4YOUk0VDd4FyENYtHD0TDsHw2JfZyLFrFZ6ZUEukOl82cKx4YXveptRvHME6RsvEINNyxC5Af6NwcwcgBlhgiNHZ60cwUpj_oKT3zgn0Cny2hZyA-DPqT7z8_wIEY0faOcethik-10RedXC2xsK1qXLM-o–m0xNpV0M6MuQlUNq7mkicaBSS87tJ4YDOfHG0SFYjgqeOKO915jKmkJISv7TaP2T-dXyk_cSCUYgsJBZlb8gsuMA8voLz0QDA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01115a1c90b294755c4b3cd20d7a944c0a4c9cb4dcd81420fb938ae176db97065b14cfabe5bc8b950855f89cdad5fade8fa644d9ca’
–data-raw ‘{
“requestId”: “f931a036-512f-4852-ab98-91eece1c7972”,
“timestamp”: “2022-06-28T09:23:03.911000”,
“transactionId”: “4b569e1f-f67b-4b1c-98fe-527005ec34d5”,
“credential”: {
“authCode”: “931740”
}
}’
Thanks,
Govind D.