Use the REST API. Probably.
"the server api integration" is meaningless beyond implying that "I want another system to talk to Jira". If you want a proper answer to this question, you're going to need to explain the question - what are you trying to do and why?
I'm sorry, I really don't understand most of that.
I'd suggest you start with the ads side of it - see what that can do first and how it fits in with what you're trying to achieve, and then start building REST calls to support it when you get to the confluence part.
Hey Austin! Come join us for our 2019 Atlassian Community Summer BASH as we transition ourselves into party status! Bring an attachment, log a great time, and collaborate with new friends as we celeb...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events