diff --git a/source/developers/api.markdown b/source/developers/api.markdown index ac9737a5d44..b5828d9e729 100644 --- a/source/developers/api.markdown +++ b/source/developers/api.markdown @@ -18,6 +18,12 @@ In the package [`homeassistant.remote`](https://github.com/balloob/home-assistan 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`). +```bash +curl -X GET \ + -H "x-ha-access: YOUR_PASSWORD" \ + http://localhost:8123/api +``` +

You can append ?api_password=YOUR_PASSWORD to any url to log in automatically.