Getting Error errorCode': 'UDAPI10000'

i am getting following error post running code in python to log into app. Can somebody guide?

{‘status’: ‘error’,
‘errors’: [{‘errorCode’: ‘UDAPI10000’,
‘message’: ‘This request is not supported by Upstox API’,
‘propertyPath’: None,
‘invalidValue’: None,
‘error_code’: ‘UDAPI10000’,
‘property_path’: None,
‘invalid_value’: None}]}

@hemal8

This could potentially be a case where the details you’ve given are incomplete or incorrect. Kindly provide the code so we can pinpoint the problem.

Thank you!

url = “https://api.upstox.com/v2/login/authorization/token

data={
‘code’: ‘{code}’,
‘client_id’: ‘{UPSTOX_API_KEY}’,
‘client_secret’: ‘{UPSTOX_SECRET}’,
‘redirect_uri’: ‘{redirect_uri}’,
‘grant_type’: ‘authorization_code’
}

headers = {
‘accept’: ‘application/json’,
‘Api-version’: ‘2.0’,
‘Content-Type’: ‘application/x-www-form-urlencoded’,
}

response = requests.post(url, headers=headers, data=data)

print(response.status_code)
print(response.json())

this is the code, I am also facing the same issue.

{‘status’: ‘error’, ‘errors’: [{‘errorCode’: ‘UDAPI100069’, ‘message’: “Check your ‘client_id’ and ‘client_secret’; one or both are incorrect.”, ‘propertyPath’: None, ‘invalidValue’: None, ‘error_code’: ‘UDAPI100069’, ‘property_path’: None, ‘invalid_value’: None}]}
Getting this error