Complex access token request process

I have created request to get access token but why i need a webhook url and approval from user every day even i have api key and secret with me?? Is there any simple solution?

import requests
from config import CLIENT_ID, CLIENT_SECRET

url = f"https://api.upstox.com/v3/login/auth/token/request/{CLIENT_ID}"
payload = {
“client_secret”: CLIENT_SECRET
}
headers = {
“Content-Type”: “application/json”,
“Accept”: “application/json”
}

response = requests.post(url, headers=headers, json=payload)
print(response.text)

if response.status_code == 200:
data = response.json()
access_token = data.get(“access_token”) # Adjust key as per actual API response
if access_token:
with open(“access_token.txt”, “w”) as f:
f.write(access_token)
print(“Access token saved.”)
else:
print(“Access token not found in response:”, data)
else:
print(“Failed to fetch access token:”, response.text)

@sreenivas Even though you have the API key and secret, accessing user-specific data securely requires user consent (approval). These steps are essential for ensuring security and compliance with regulatory standards.