UDAPI100016: Invalid Credentials Error

I am using the following code to authenticate the API.

import webbrowser
from urllib.parse import quote,quote_plus
url = f"https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={apiKey}&redirect_uri={quote_plus(redirectUri)}"
response = requests.request("GET", url)

But I am getting the following error:

    "status": "error",
    "errors": [
            "errorCode": "UDAPI100016",
            "message": "Invalid Credentials",
            "propertyPath": null,
            "invalidValue": null,
            "error_code": "UDAPI100016",
            "property_path": null,
            "invalid_value": null

Redirect URI:

I have verified that all the credentials are properly in place. Please help…


Assuming the credentials are actually are valid, please check your browser’s cache settings. This could be a scenario where your cache is not available for usage.

Please keep us informed on this.


1 Like