Access Denied for PHR_App API

Hi Team,

I want to use Registration of ABHA Address by Mobile Or Email APIs (https://dev.ndhm.gov.in/cm) but I’m getting “Access Denied”. when I try to use any APIs. I think I’m missing PHR permission. can anyone help?

My Client ID: SBX_003009

My Token:

eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODA3NTY1NjAsImlhdCI6MTY4MDc1NTk2MCwianRpIjoiMWYwM2JmYzItOTZkZC00NDgzLTg5OGUtMGZiZjY3MTdlOGQ0IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIzOGQ4OTQ3NS1mOWVjLTQ2ZTQtOWUyYS1iMjdmODkzYTA1ZTMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAzMDA5Iiwic2Vzc2lvbl9zdGF0ZSI6IjVmNDI3YjE4LWQ1ZmQtNDlkZi04MDAyLTk2ZmZkOWNhZTI5MCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDMwMDkiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDMwMDkiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4LjIwMyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDMwMDkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4LjIwMyJ9.RIOvHukcPOW2odvZiqq1vn6xZ77XJlxbJ-eH0q9b-YTjGyJFhxZBWEyqFA64G3vwQ9BsGmnYm6i6ytPF7X8uvf2E3jhMaC90DcXM6TrLwVYtDgebLAImkyDPjy0S_OTI93Tn4WndZAmGwGmpNL9DMMwZn8n7GcseQNVkqtfxAuft_RwxJOBFjFhsN6NS2gOWR9VRDm-jxFZIv1bhs_yvLMjDzOoHgVriLkZg9R-Z1EZpUcQtfN_UE7A5aU7jEjmFu3v7DOQvXjANxxR8diX2Hr8KFDaCVUcJtLsJGy4cQV1KrOLQzLY0bJZo-4VZU_7B7mSA6JiFtqJ1ShrnqkEaWw

I got access token from https://dev.abdm.gov.in/gateway/v0.5/sessions api

paste your token at jwt.io and see what all things u have

Cheers,
GC


thses are the roles that i have access to i need the access to phr app API’S.
Kindly Help.

@chaitanya2001,

Please help us with what you are implementing,
PHR roles only required when you are implementing a PHR.
Also Please help us with the screenshot of API which is failing and curl.

Thanks

I am implementing an App which will be used to login/register people with ABHA number, see their profile/ health records.

curl :- curl --location --request POST ‘https://dev.abdm.gov.in/cm/v1/apps/login/mobileEmail/auth-init
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODEyMDEzOTgsImlhdCI6MTY4MTIwMDc5OCwianRpIjoiZDNiZjc3YTQtMWQxZS00OTY1LThjZjAtNGQ3YWUzZmJjOGRkIiwiaXNzIjoiaHR0cHM6Ly9kZXY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JWVuncgSYOnaO6Gv3VkNusiZ1DgwZDZmFNXMKDhs7w-rdacZj348vlrVwNEXonGQ9vHIgc8pzRRM9fOsog8JsDeWgmiwbQs5qTy8XRn5PBbdyU-ygW5n-FFjrVXMLRKuLb6Xj0Tq5xDyWd5XmOV1XZkqg’
–header ‘Cookie: TS011c04bd=01445fed043e13e8d3dacc6218da08c993456aabc6594377de66f2af61c0ff32e5fd93dd2bc9eeab04016a1f294dbb836309fdd945’
–data-raw ’ {
“value”: “l90Y5Y3VlZNrvtoTmoFR9FF6RZyrijB/fbWk8kplMJ6iefNfKehtb2hjTPzom6XaLksY+wAmUbVLBybJIF9j8AIoPckMx9AS/6FH9FG6PVSDX/rvSu3Jroe+nwvRJ8zn1cTlM9j6KqmHH6htcJvPv/xidGnWFzRCXcwpI0mkRZq+xyQqBgV3tnbDPCZd4wf6/RU7CsMJkgZjaZDr0gBLvUT/60dKD2jhrp28Pdm2QYB2p2FqrvSYz7n3CQRfVUzCZ29q9G/+gmLtbyziCGEgAWoULJkXns8u0OhhmDrhleMKZYo1YqzEhl/psuLqz9VsVVoY2szke9NZpkXfy0zb0mbpb1cvm35dMAqF9/ETYMxzMlYiOqkMqeZzEBppo7XtK+mtazkgAZt6etA84QVK8bG3UwGeFEsiuT6kK9d3Hq4wnFs2iu0ltPU4vHweOQlGIIZhFYcIhoMZDjh7pP4v2vj+GkisWhXZwwYedNHGpsgQe1Yll/4uP0cEsT2nT1xvVTbXVNye/+qNIDJLSN2T8BanX+Ld670B2dev+oyEi5NEcqPkPkPBy1gn3vZRHC0lOmqDyKIDQB9DqFn54OqKk6pkqa6wCtd8lDsjoAyoSpicfT0FeiAQwmc5JWSke37kZ/MBdLQe7KkeOQOY4wYQVOVSvxkxFQL90Ef7KRsavN8=”,
“purpose”: “CM_ACCESS”,
“authMode”: “MOBILE_OTP”,
“requester”: {
“type”: “PHR”,
“id”: “SBX_003009”
}

} ’

Kindly Help!!
Client id:- SBX_003009

please help
i am still stuck on this error