mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-11-14 13:31:52 +00:00
Extend and update API documentation (#4485)
This commit is contained in:
@@ -16,6 +16,8 @@ Home Assistant runs a web server accessible on port 8123.
|
||||
|
||||
The API accepts and returns only JSON encoded objects. All API calls have to be accompanied by the header `X-HA-Access: YOUR_PASSWORD` (YOUR_PASSWORD as specified in your `configuration.yaml` file in the [`http:` section](/components/http/)).
|
||||
|
||||
If you are not using the [`frontend`](/components/frontend/) in your setup then you need to add the [`api` component](/components/api/) to your `configuration.yaml` file.
|
||||
|
||||
There are multiple ways to consume the Home Assistant Rest API. One is with `curl`:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user