Is there any Zynthian API?

As for some subscription model in OSC, you may find some potential inspiration in the Behringer implementation documented at https://behringerwiki.musictribe.com/index.php?title=OSC_Remote_Protocol (see esp. the “Client initiated messages” and “Server replies” sections).