Error UDAPI100050 in uplink

Hello community,

I opened a new account recently in upstox and yet to add funds into demat account. I have done following two steps in upstox developer API:

Step-1. First obtained authentication code using api_key and api_secret. Further, completed response request to generate access_token. The status code was 200 for response through post method which contained my mail id, account ID, segments activated and access_token.

Step-2: I have used above access_token to retrieve profile using get method. It shows that error 401 with UDAPI100050 and invalid access token. What is the problem with UDAPI100050. Do I need any accessible permission from upstox as my account is new or something else. Please help me to resolve error code UDAPI100050.

Thanks in advance.

Hi @Vedhashri_dasari
Once you have obtained the access token, you should be able to access APIs such as “Get Profile.”

Please ensure that you are using the most recent access token, as generating a new token invalidates the previous one.

Additionally, kindly share your cURL request so we can verify that the access token is being passed in the correct format.

For reference, you can also review the example code here: Example Codes | Get Profile.

Thank you

Hi Ketan ji,

Thanks for taking the time to help me.

Snapshot of request is attached herewith

At line 16 of attachment, Response.json() prints all details such as email id, user ID including access token.

At line 23 of attachment, response request shows error UDAPI100050 with message as ‘Invalid token used to access API’.

Thank you.

(attachments)