M1 Linking Issue

Hi team facing this issue :Token with invalid access role
Response code :403 Forbidden.

Hey @simarjeet,

URL is Incorrect ,
You have to call on gateway.

try using below curl,

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init
–header ‘accept: /
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDgxMTc3MDUsImlhdCI6MTY0ODExNzEwNSwianRpIjoiZDhjNjM0ODgtYjgwMC00M2VjLWJkZTMtZWU4NjdmYWUzMTQ5IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxZjQ0ODUyYy04N2ZlLTQ1MjgtYWUzMC02ZmRhYjYwNTZiZDgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNTk1Iiwic2Vzc2lvbl9zdGF0ZSI6Ijk0MzlmMDQ0LTM0YmUtNGZhNy1iZTE4LWVjMDI5MDZkNDFiOCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxNTk1Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SWQiOiJTQlhfMDAxNTk1IiwiY2xpZW50SG9zdCI6IjEwLjIzMy42OS40NyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDE1OTUiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY5LjQ3In0.SOSR7ZqTULxVKui3E2WJuzo5EivxhrZdPu1_kIKVsQLhRF2suZR29J9d6cwCwUzVi6Y6xhNw6NQMVKDlQVFFYeAfWEMOKiw2o9C3u94IuY1p5d3dtGgMseGsk7MrH8g8fCUNKfL6Zg0nlz8UyDQFpNbXCKIMb1TxWkR630tLUAfUe5URfjnKL9bSdylAZRPLc4grKV0qHbsq8iZWQTVVl3IFNPfJxG7sGgabFT8eaGYU13KROBjJAxmSMT45ImLLNFpCXdpYOjh_HpD7H3V08AKrTYbPgzu3HMONxUDI01f80RaLhR330LdKxbiN6RSDnM7x5xk4StJIkzm4yChBUg’
–header ‘Accept: application/json’
–data-raw ‘{
“requestId”: “cad47ec1-37dc-4c38-95ea-cb0a744810e0”,
“timestamp”: “2022-03-14T08:44:21.207000”,
“query”: {
“id”: “73-7854-0707-4044”,
“purpose”: “LINK”,
“authMode”: “MOBILE_OTP”,
“requester”: {
“type”: “HIP”,
“id”: “Demo_Test_002”
}
}
}’

Thanks

Hi @shubanshu thank you for your time.


Getting error for too many request.