ACE Jira Cloud Unattended Task Scheduler

Hi,

I’m new to ACE plugin development and working on a custom app that fetches data from Jira Cloud at regular intervals and stores it in a database. I referred to this article: Scheduled Tasks in Atlassian Connect / Jira Cloud

My plugin’s frontend is built with React.js. I’m using AP.request to fetch data from the Jira Cloud instance and send it to the backend service. However, I’m having trouble setting up a time interval to run the task automatically.

I have a few questions:

1.Can I call Jira Cloud APIs directly from the addon service?
2.How do I authenticate the request properly?
3.Is the token used for authentication valid forever, or does it expire?
4.How can I set up the plugin to ping the addon service regularly without user interaction?

Thanks!