Health ID creation Issue

Currently I am using APIS to create health ID but the APIS are not working .

Kindly do let me know the error

HIP ID: hied01

API :- https://healthidsbx.ndhm.gov.in/api/v1/registration/mobile/generateOtp

{ “mobile”: “+919501013620”}

Client ID: “clientId”: “SBX_000227”,
HIP-ID: hied01

Kindly do provide me with solution

@Shubhanshu_Shukla Kindly do provide me with solution.

Thank You.

  1. Getting Session

{

"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Mjk5NTE3ODcsImlhdCI6MTYyOTk1MTE4NywianRpIjoiY2I1OWUxOTktNDBhNC00NjI1LTgyN2QtOTYwNjg1Yzg5Y2YzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIzM2VjMjgzMy03MjRlLTRhOWYtYmFiMS00ZGMwMzMxNjhlOWYiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMjI3Iiwic2Vzc2lvbl9zdGF0ZSI6IjkyZjQ5ZTczLWFmNDYtNGExNC1iYTI2LWMzOTZlMzNjODRhNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDAyMjciOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3Blbml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ZWZyZXNoIiwiYXpwIjoiU0JYXzAwMDIyNyIsInNlc3Npb25fc3RhdGUiOiI5MmY0OWU3My1hZjQ2LTRhMTQtYmEyNi1jMzk2ZTMzYzg0YTciLCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIn0.70-BRVTW42qOoKUKreYe69JEIlKydCxpZwbogXhQfJ4",

"tokenType": "bearer"
  1. Passing the Token into the this API

API:- https://healthidsbx.ndhm.gov.in/api/v1/registration/mobile/generateOtp

{ “mobile”: “+919501013620”}

Client ID: “clientId”: “SBX_000227”,
HIP-ID: hied01

curl -X POST "https://healthidsbx.ndhm.gov.in/api/v1/registration/mobile/generateOtp" -H  "accept: */*" -H  "Accept-Language: en-US" -H  "Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Mjk5NTE3ODcsImlhdCI6MTYyOTk1MTE4NywianRpIjoiY2I1OWUxOTktNDBhNC00NjI1LTgyN2QtOTYwNjg1Yzg5Y2YzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIzM2VjMjgzMy03MjRlLTRhOWYtYmFiMS00ZGMwMzMxNjhlOWYiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMjI3Iiwic2Vzc2lvbl9zdGF0ZSI6IjkyZjQ5ZTczLWFmNDYtNGExNC1iYTI2LWMzOTZlMzNjODRhNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDAyMjciOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjYyIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRJZCI6IlNCWF8wMDAyMjciLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDIyNyIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjcuNjIifQ.Su-8_-xkUW8FUZLJnuEaPF0YNcCTewwvrXCfKOu1u9I4uxB3VuepX6oYoZWCRRSrKd8NbHXPwnoiiNX8yN9EwcCBDOlWmDdlnlLhVhXVJBmu0LYGYTaFT0gps_haxFeWq3ijyfgdA4uzBheZZppKjzCMENCPVKbuISZHyydUdByvkrP1pJ99AFlngABCi9s-yma5P7OrpN_yL7c2Lw8WZEgaa6w1syiq2bF-Sq_M6L2hcKQ9u9FFgxq-S_7ut_6BcU4CqNo3gnTpmL3zLXGOQTHkrG3oeUXEEScxsc5rcFJ9u_uLwzfMOtYRpsOjZWulAETq_6j2qzZqW9U6f1yO1w" -H  "X-HIP-ID: hied01" -H  "Content-Type: application/json" -d "{  \"mobile\": \"9501013620\"}"

Hi @jagjotwadali,
You clientId do not have roles to access healthId API.

@Shubhanshu_Shukla check if you can help.

Thanks

Hey @jagjotwadali,

It was provided earlier,
Does it still exists?
Please confirm.

Thanks