https://dev.abdm.gov.in/hiecm/api/v3/token/generate-token
@IntegrationSupport
curl --location ‘https://dev.abdm.gov.in/hiecm/api/v3/token/generate-token’
–header ‘REQUEST-ID: 68121a55-a510-434e-b98c-c5d36d5fb0f3’
–header ‘X-HIP-ID: HIP_0012345’
–header ‘TIMESTAMP: 2023-10-03T04:45:07.437Z’
–header ‘X-CM-ID: sbx’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2OTYzMjk4MjcsImlhdCI6MTY5NjMwODIyNywianRpIjoiYjc1NjNiZjgtNWFiMC00ODZmLWI3OGMtN2MyODY4MWQ2YTE1IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhOWVjZjRlNC04OTEyLTQ3ZTctYmNmNC0xYmMzNTAzNzM3MjAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxMTg5Iiwic2Vzc2lvbl9zdGF0ZSI6ImNjZjU3ODQ0LTIxODEtNDJhOC04NGU0LTJiYWE1ZjRmOTdjYSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiaGlwIiwiaHBfaWQiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxMTg5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42OS43MiIsImNsaWVudElkIjoiU0JYXzAwMTE4OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDExODkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY5LjcyIn0.ZRo53kyf943z1ia973Ej50C8mBFi0r2_HDg16HcmxLx9xl6n02gxTU-j3x9l3ZMPEzwBwB4eEF-Lwy-Dg3ntsmgAOAfqyuV-pjghK5tHSo-6Q_8pieN6j-MQqCwRIFxvOy1P0UCVzp7MlcWD2GAjU4D1tOLBjOc6kUEKLrsI6fzGRW7e6aTx_eNHv7p5iAE2q3Q3xs3167KBDaA1wpZBNYtfmMrctq3KgrNOUPEQ73yq3MSCgMbZyRn3LdlpddVcxrjicLiBa0ETH5xEaJ0WurEGCyoz0diGy-7QaIxdRoqokM3DcGcFRb6eL8YbIQsvYYzTc9GS5ZkN1IRW7bD2PQ’
–header ‘Content-Type: application/json’
–data-raw ‘{
“abhaNumber”: 91178386101731,
“abhaAddress”: “91178386101731@sbx”,
“name”: “Mayur Bapu Chaskar”,
“gender”: “M”,
“yearOfBirth”: 1994
}’
i have used this curl and iam receving the response as
{
“code”: “900908”,
“message”: "Resource forbidden ",
“description”: “User is NOT authorized to access the Resource. API Subscription validation failed.”
} whereas my “clientId”: “SBX_001189”
how could it be resolved
Hello, facing the same issue. What token we have to pass for authorization.
Hi
Authorization token is the access token which we receive from sessions api with client id and secret key.
It is necessary to get access from NHA for accessing v3 api.