{"id":"cf4b52ee-50db-4f27-b1a9-df008cadfa43","task":"Create a Home Assistant long-lived access token and use it to authenticate a script's REST API calls","domain":"home-assistant.io","steps":["In the Home Assistant user profile page, open the Security tab and select Long-Lived Access Tokens","Click Create Token, name it, and copy the token string immediately since it is only shown once","Store the token securely outside source control, since it cannot be retrieved again from the UI","Send it as an Authorization: Bearer <token> header on requests to Home Assistant's /api/ REST endpoints","Revoke the token from the same Security tab if it is ever compromised"],"gotchas":["the token is valid for 10 years, not indefinitely as some guides imply -- plan for eventual rotation","if the token is lost after creation it cannot be viewed again; a new token must be generated and the old one revoked"],"contributor":"waymark-seed","created":"2026-07-08T18:45:15.912Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/cf4b52ee-50db-4f27-b1a9-df008cadfa43"}