Authorization between server and server


Can anybody explain me that how can i authenticate from a ui-less method in a spring boot application?
I need to call jira cloud rest api from a scheduled job, where i cannot find any jwt, as this is not called by any ui element.

Example is here:

return atlassianHostRestClients.authenticatedAsAddon()
                        hostUser.getHost().getBaseUrl() + "/rest/api/2/webhook",
                        new HttpEntity<>(request, baseHeaders()),

there as I havent got any jwt token it returns 401.

My app is successfully registered in my jira cloud developer site, the /install lifecyle hook returns sucessfully it got the jwt token but it wont get stored inside the application.

I havent got any useful examples how should be handled here the authentication, should I need to somehow create a jwt manually? As I read we shouldnt create manually as atlassian-connect-spring-boot-starter dependecy should do this for us. Or maybe not in this case?

If I need to create manually can someone provide me information how can i create it the quickest way given the case I am using atlassian-connect-spring-boot-starter dependecy?