Log In to Zoho CRM using the API

Log In to Zoho CRM using the API

Hi,

Im trying to automate the login for my web application but I cant find the way to do it.
I can successfully retrieve a code for generating a token using the endpoint https://accounts.zoho.com/oauth/v2/auth but only if im already logged in, otherwise im redirected to a login page where I have to enter my credentials manually. I tried to use the endpoint https://accounts.zoho.com/login without success. Is it possible to achieve this?

Thanks