/v0.5/users/auth/init getting 429

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init
–header ‘Content-Type: application/json’
–header ‘X-CM-ID: sbx’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzE4OTU3MzIsImlhdCI6MTYzMTg5NTEzMiwianRpIjoiMGM1MjRkNjgtYmNiMy00YjM5LTgzNjMtZjZlYmQyNjFmZTdkIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI0NDg4ZWY3Ni1kMTEzLTRmMDYtOWMyZS01YmM1ZmE0ZTE5ZTQiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJORUdEIiwic2Vzc2lvbl9zdGF0ZSI6IjdhNTcwMmRjLWY5NjMtNDRhNy04ZWEzLWMyOTM5YzlmZjdkMyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJIaWRJbnRlZ3JhdGVkUHJvZ3JhbSIsImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJORUdEIjp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42OS4yMTEiLCJjbGllbnRJZCI6Ik5FR0QiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1uZWdkIiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy42OS4yMTEifQ.TM13hLtb2aE1VT5RVu4okJHyBoYGAVsnneRqkBBUUU1eET2VVP30hEu-IZkQvUxEbbPVftdilwUzn9-e2gcFM7nw6VEFBstX_oQG-EPSJt0aJ0TfQ6fqE6RDLqAX-N5bGJkp3kjaku8y3KHXoEBdAZbTpYYSiqkwfT_e2YjLYzFqtN8jZRfkBLs2BPCQEqqAKuZ6yNlYDdQB5LwbB-yAVLd2aQ6ME2SA13hk1ASbzx2SqXoWSn4EqjUTCQJ5t1m-9a3iFe4YhKjhsQOMB32yNJmgj7UlRYldWwa_kqfC2oSPzoFAf6lzuwvifUzjE2p7NB5nU2Y8PmLHsLdtdztRqA’
–header ‘Cookie: TS01960242=01115a1c9079d0bf72e63ab8dd81994000922aca9dc33860cd4ff6e5036dab503c7c24c8ebcc583bcf632f74ef1b9dceffc00ae051’
–data-raw ‘{
“requestId”: “b3e352ec-eba1-43b6-908b-760388024518”,
“timestamp”: “2021-09-07T06:37:37.024000”,
“query”: {
“id”: “ranjanashish011@sbx”,
“purpose”: “LINK”,
“authMode”: “DIRECT”,
“requester”: {
“type”: “HIP”,
“id”: “NEGD_DigiLocker”
}
}
}’

In response i am getting
{

"error": {

    "code": 2429,

    "message": "Too many requests found"

}

}

Hey @ranjanashish011,

Please try with given header, it will work

Thank You

I am using https://dev.ndhm.gov.in/gateway/v0.5/sessions

{

"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzE4OTU3MzIsImlhdCI6MTYzMTg5NTEzMiwianRpIjoiMGM1MjRkNjgtYmNiMy00Y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ZbTpYYSiqkwfT_e2YjLYzFqtN8jZRfkBLs2BPCQEqqAKuZ6yNlYDdQB5LwbB-yAVLd2aQ6ME2SA13hk1ASbzx2SqXoWSn4EqjUTCQJ5t1m-9a3iFe4YhKjhsQOMB32yNJmgj7UlRYldWwa_kqfC2oSPzoFAf6lzuwvifUzjE2p7NB5nU2Y8PmLHsLdtdztRqA",

"expiresIn": 600,

"refreshExpiresIn": 1800,

"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIyMWU5NzA4OS00ZTcxLTQyNGEtOTAzYS1jOTAyMWM1NmFlNWYifQ.eyJleHAiOjE2MzE4OTY5MzIsImlhdCI6MTYzMTg5NTEzMiwianRpIjoiY2FmYWYyM2YtMmQxNS00ZTgwLTlkYWUtY2Q5NWEzY2VkYjlkIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6Imh0dHBzOi8vZGV2Lm5kaG0uZ292LmluL2F1dGgvcmVhbG1zL2NlbnRyYWwtcmVnaXN0cnkiLCJzdWIiOiI0NDg4ZWY3Ni1kMTEzLTRmMDYtOWMyZS01YmM1ZmE0ZTE5ZTQiLCJ0eXAiOiJSZWZyZXNoIiwiYXpwIjoiTkVHRCIsInNlc3Npb25fc3RhdGUiOiI3YTU3MDJkYy1mOTYzLTQ0YTctOGVhMy1jMjkzOWM5ZmY3ZDMiLCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIn0.HvBGDfv6TbnZV4bQexn-MKRhbXTqROcH37ifSjjAloc",

"tokenType": "bearer"

}

I had tried with suggested headers but still getting same in response

Hello @ranjanashish011

Please define const moment = require('moment'); pm.globals.set("timestamp", moment.utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS")); in Pre-request Script after that use "requestId": "{{$guid}}", "timestamp": "{{timestamp}}" in request body.

please try this.

Thank You

Thanks for reply now i am getting 202 on https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init
now

i have add bridge url https://cbsetest.digitallocker.gov.in

and mapped the callback url to https://cbsetest.digitallocker.gov.in/gateway/v0.5/users/auth/on-init

but i did not get any callback response on https://cbsetest.digitallocker.gov.in/gateway/v0.5/users/auth/on-init i have also tried to add bridge url https://cbsetest.digitallocker.gov.in/gateway but still not getting any response on it

Hello @ranjanashish011

Are you getting any callback responses on the webhook URL (https://webhook.site/#!/efab1301-064d-4b0e-9b5c-e53eb13d0367)?.

Thank You.

yes i am getting responses on webhook…

i have added bridge https://cbsetest.digitallocker.gov.in/gateway
and saving post data from https://cbsetest.digitallocker.gov.in/gateway/v0.5/users/auth/on-init

You may send data to https://cbsetest.digitallocker.gov.in/gateway/v0.5/users/auth/on-init using application/json header

got response on webhook: https://webhook.site/efab1301-064d-4b0e-9b5c-e53eb13d0367/v0.5/users/auth/on-init

{
“requestId”: “6d58c4f9-ff3d-4a8a-80d4-aa3e49d2a481”,
“timestamp”: “2021-09-20T11:43:25.554452”,
“auth”: null,
“error”: {
“code”: 1510,
“message”: “Cannot find the user”
},
“resp”: {
“requestId”: “2d70cced-003d-4ad0-b530-a52aa46f9d32”
}
}

Hello @ranjanashish011

Have you got OTP https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init when hit API?

no … in webhook there is response message “Cannot find the user” … so if possible can i get this response to my server

Hey @ranjanashish011,

Can you show us the header ,
Snap-shot will work.

Thank You

https://webhook.site/#!/efab1301-064d-4b0e-9b5c-e53eb13d0367/bca2886e-dbe4-40fe-8abd-d7d509a114e1/1

using auth mode MOBILE_OTP i have got otp but call back response to my server is missing

PLease help me understanding Bridge url?