How to generate grant token without using developer console

How to generate grant token without using developer console

I'm integrating Zoho CRM with another app. I need to be able to use REST calls without ANY HUMAN INTERVENTION. I need a programmatic way to generate a grant token. Using the developer console will not work!

This question has been asked several times before but never answered by your responses in this forms. It has been suggested that the generation of a grant token is only needed once since using it you can get a access token and refresh token. This apparently isn't true as the refresh token can be only be used so many times (10?),

Please explain how someone is supposed to use the rest API without the need to manually generate a grant token.

Bill