Home Assistant provides various APIs. For detail please refer to Home Assistant API documentation.
If you are not using the
frontend in your setup then you need to enable the components by adding them to your
configuration.yaml file. E.g.,
websocket_api: for the WebSocket API or
api: for the REST API and the Python REST API.