Send object from server to frontend


I’m working on a plug in that has mainly front end components (I am using the SDK). Now, we added an api that will receive json objects (some questions and response variants for the users). We want to show those json objects in the Confluence UI.

The api will be called by an app outside confluence.

My question is:
Is it possible that when one object is received by the api on the server side, to send the object to the frontend side so we can display it in the UI, like a notification?

Thank you!