Judging by the topic title I assume you want to build something through the API. So you could set up an online endpoint on your own server from which the button can get the required data.
Should be reasonably easy to do with the
monetary-account endpoints found here. Security will always be a concern though with a public endpoint like that so that is something you should keep in mind obviously.