I am new to atlassian development. I am on cloud version of atlassian. I want to call an external api via http, and display its result in confluence page UI. I want that every new page that is created in confluence of my organization has this section with a link/button to call the external api, and on click display the results of api call (string) on confluence UI.
Can I write a small Javascript/ client side script or macro for it? ORdo i have to create a forge application? Also how is forge application integrated in the confluence environment? Please share direction to look into.