Getting error UDAPI100016 while authenticating

I am trying to authenticate using developer API via TOTP.

After entering the TOTP on a page and 6-digit PIN on the next page, I click on Continue. I then get this error.

At 10:05 PM (4 Aug 2024)
URL: https://api-v2.upstox.com/login/authorization/redirect?code=noRKdc&ucc=325755

{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100016”,“message”:“Invalid Credentials”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100016”,“property_path”:null,“invalid_value”:null}]}

I checked each step - mobile number, TOTP and the access PIN. All are being specified correctly. I even tried to login using normal/human interactive login and used the TOTP generated by the same authenticator and I was able to login successfully.

The API method is giving me the error. I do not understand why. The error body does not give me much details.

@ravikatha,

Thanks for reaching out!

Error code ‘UDAPI100016’ is typically caused by a cache-related issue. Specifically, it occurs when your client app isn’t able to retain the authenticating system’s information in the local cache.

Could you try adjusting the cache settings on your app to see if that resolves the issue?

Please keep us updated on what actions you take. I’m interested in understanding the root cause of your issue.

Thanks!

Hello

Thanks for the reply. The issue is not the cache. I have checked under various settings including incognito.

This issue occurs when I use the API endpoint for getting the login URL “https://api.upstox.com/v2/login/authorization/dialog” and use it to start the login process.

However if I use “https://api-v2.upstox.com/login/authorization/dialog” with the required query params, everything goes smooth and login process completes

I guess, the session from the new api domain is not being transferred to the login process properly