Getting an API Token
- Open the Aris web UI at
http://aris.local - Go to Settings → API Tokens
- Click Create Token and give it a descriptive name (e.g., “Home Assistant”, “Grafana”)
- Copy the token immediately—it’s only shown once
Using Your Token
Include the token in theAuthorization header of every request:
Which Endpoints Require Auth?
| Endpoints | Auth Required |
|---|---|
/health, /ready | No |
/firmware/* | No |
All /api/* endpoints | Yes |
/prometheus/* | Yes |
Managing Tokens
You can view and delete tokens in the Aris web UI under Settings → API Tokens. Each token shows:- Name - The label you gave it
- Created - When it was created
- Last Used - When it was last used for an API call
Best Practices
Use descriptive token names
Use descriptive token names
Name tokens after their purpose: “Home Assistant”, “Grafana Dashboard”, “Backup Script”. This helps you identify what might break if you delete a token.
Create separate tokens for each integration
Create separate tokens for each integration
Don’t share tokens between services. If one is compromised, you can revoke it without affecting others.
Store tokens securely
Store tokens securely
Never commit tokens to git or expose them in logs. Use environment variables or secret managers.
Regularly audit your tokens
Regularly audit your tokens
Check the “Last Used” timestamp. Delete tokens that haven’t been used in months.
Error Responses
401 Unauthorized
If you see this error, your token is missing, invalid, or expired:- Missing
Authorizationheader - Typo in the token
- Token was deleted
- Using
Bearerprefix incorrectly (should beBearer YOUR_TOKEN, notBearer: YOUR_TOKEN)

