Hi Anu,
This is typical app-to-app communication and works with the Oauth2.0 client credential grant type. As you mentioned, the authorization grant type requires user interaction for authentication to obtain an access token. We recommend using the Client Credentials grant type. Our organization uses the same to collect logs from our Sailpoint IDN tenant. Please let me know if this helps.