HELP open 2 remote api

I would like to know how to make an api with configs for third parties, that I can disable or enable it remotely in open 2

thank.