Recommended way to call an external API? (Web client compatible)

Hi everyone!

I need to interact with a external API, what is the recommended way? For example, when the user presses a certain button, the value of a certain tag should be sent to the external API.

It should be compatible with using the InTouch application via Web Client.

Many thanks for your time!