How to use a headless browser to authenticate to Jira Cloud and download a page?

Hi All,

I am trying to use a headless Chrome browser to download regular Jira Cloud pages, take screenshot of the pages, etc. To authenticate, I am currently using API tokens and HTTP Basic Authentication. I would like to do the same thing on behalf of multiple Jira users without asking them to create their API tokens manually.

My questions:

  1. Can API tokens be generated or listed programmatically?
  2. Other than API tokens, is there any other way of authentication to access regular Jira Cloud pages? I tried JWT but it did not seem to work.

Any help would be highly appreciated. Thank you.