Best way to interact with Hassio from website?

Hello,
I am currently new to smart home and domotica systems.
I would like to have a panel that i can 100% customize so, i will make a html page on my own server. Now i need to communicate with Hassio for switching my lights, getting the current brightness etc.
What is the best way to do this. Is it MQTT and NodeRed or the Hassio HTTP api or what else?

Hope anyone can help me with this.
Regards
Kuno