Getting error during authorization

Getting error while authorization {“status”:“error”,“errors”:[{“errorCode”:“UDAPI100068”,“message”:“Check your ‘client_id’ and ‘redirect_uri’; one or both areincorrect.”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100068”,“property_path”:null,“invalid_value”:null}]}

I have validated the client id and reddirect uri , they are same as the once in app creation page. Please help resolve this error

Please ensure that all parameters in the URL for generating access token are correctly passed.

  1. code → The code is a unique parameter included in the URL upon a successful Authorize API authentication.
  2. client id → The API key obtained during the app generation process.
  3. client secret → The API secret obtained during the app generation process.
  4. redirect url → The URL provided during app generation.
  5. grant_type → This value must always be authorization_code .

Also, Generating an auth code and generating access token using the auth code is a three-step process. The first two steps must be completed in a web browser:

  1. Perform Authentication: Access detailed instructions at Perform Authentication .
  2. Receive Auth Code: For this step, visit Receive Auth Code .
  3. Generate Access Token: Finally, to generate the access token, refer to Generate Access Token .

You will receive the auth code on the Redirect URL url in second step which need to be used in process of generating a access token in third step.
The access token is valid for a day an expires at 3:30 AM in the morning.

I recommend reviewing the documentation to better grasp the process here Authentication | Upstox Developer API

I trust this information will be useful.

Hi ,

I have followed the same documentation, but I am getting the error in perform authentication step while making a get request of authurl. following is the auth url , I have used"code"&client_id=%20"{client_id}"%20&redirect_uri="{redirect_uri}"
I have checked the client id that I have used here versus the one generated during app creation, it is the same. but I ma still getting the error saying either client id or redirect uri is worn . can you help resolve this erro please

1 Like