How to get the response of a WebAPI on a click of a button

Certified Senior Developer

I have a scenario where there is a web api returning a basic textual response, and this web API has to be triggered when the user clicks on submit button.
This is something that we do with Integrations, similarly I have to call a webAPI on the click of a button.

  Discussion posts and replies are publicly visible