url = f’https://api.upstox.com/v3/login/auth/token/request/{client_id}’
headers = {
‘accept’: ‘application/json’,
‘Content-Type’: ‘application/json’,
}
data = {
‘client_secret’: f’{client_secret}’
}
response = requests.post(url, headers=headers, data=data)
print(response.status_code)
print(response.json())
This is returning: ‘errorCode’: ‘UDAPI100038’, ‘message’: ‘Invalid input passed to the API’.
I followed the docs. Everything seems correct.
Note: I haven’t configured Notifier webhook endpoint.
But does it even needed for the api to work?