Problem in getting Authorization code through api link

Hi Developer Team,
I am trying to create a program which will connect to upstox through API and will get the latest option data. I am doing this in Asp.net and C#.
I passed the required parameters but it gave me following error.
Sorry, you have been blocked
You are unable to access upstox.com
Below this i am getting message
Why have I been blocked?
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data

Please help me to resolve this issue as i am unable to code further.

@LSAPTE

Could you please share your client ID and provide a recording or screenshot of the workflow you are trying to achieve?

This will help us give better advice.

Hi,
My Client id is 2RC4HX.
i used following link to get the authorization code. Once i get this code, i can further use to get the access token.
https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={_apiKey}&redirect_uri={_redirectUrl}

i provided the api key and redirect url BUT it gives me following error
Sorry, you have been blocked
You are unable to access upstox.com
Below this i am getting message
Why have I been blocked?
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data

My Cloudflare Ray ID: 8ec39e1f6e663f84

I tried the same link directly used in the browser but still i am getting the same error

Hello, @LSAPTE

Can you change the URL from https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={_apiKey}&redirect_uri={_redirectUrl} to https://api.upstox.com/v2/login/authorization/dialog?response_type=code&redirect_uri={_redirectUrl}&client_id={_apiKey} and try it once ?

Let us know if that helps.

This link worked and now got Authorization code.
Thanks for the help.

1 Like