Hi @thorian93,
There are some early implementations in a project we had some years ago. You will find them in our official git repository: cmk_host_registration
Unfortunately our official project is on hold due to other priorities. But feel free, to use this code as inspiration, if you like. As I am very limited in my (free)time (two small kids at home…), I most likely cannot participate in your project - but I may have some space here and there to answer open questions. Just write me a private message.