Hi Anirudh, welcome to the Community!
Confluence Server still has a REST API for the Questions for Confluence add-on. It's available here - while the document seems like it might be out of date based on the old Confluence logo, it's just because the end-points have been stable since Questions 2.3. The API is still available in the most recent release for Server, Questions for Confluence 2.7.
Daniel | Atlassian Support
That’s right! Grandma’s back at it again, and this time she’s brought all her friends. In honor of Team '21, this Bingo round is dedicated to all things team-related, and the prizes are no exception....
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