API Home Assistant provides various APIs. For detail please refer to Home Assistant API documentation. Python API Websocket API REST API Python REST API Server-sent events