Listen to a Certain Port, coming from RIOT API

Maybe http-functions is what you need? Velo: Exposing a Site API with HTTP Functions | Help Center | Wix.com