For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /home-assistant/integrations/api.md.

Home Assistant API

Home Assistant API 集成公开一个 RESTful API,并允许与无头运行的 Home Assistant 实例进行交互。此集成依赖于 HTTP 集成

# 示例 configuration.yaml 条目
api:

有关使用 API 的详细信息,请参阅"开发者"部分中的 REST API