Alerts
The /v1/alerts endpoint on the Public API covers every rule on your account, whether you built it yourself in Dashboard → Automation or it was created automatically when you applied a device template or claimed a SiliconWit Module with recommended alerts attached. See Alerts for the full endpoint reference: GET /v1/alerts, GET /v1/alerts/:id, GET /v1/alerts/:id/history, POST /v1/alerts, PUT /v1/alerts/:id, and DELETE /v1/alerts/:id.
Creating and editing rules through the API applies the exact same validation as the dashboard (plan limits, self-loop prevention, phone verification for SMS actions, and so on), since both write through the same underlying system.
Setting Up Alerts
Section titled “Setting Up Alerts”Through the dashboard:
- Go to Dashboard → Automation
- Click Create Rule (or apply a device template that includes starter alerts when adding a new device)
- Set your condition, actions, and cooldown
- Save the rule
Or through the API, useful for managing rules across a fleet from your own scripts or backend rather than clicking through each one:
curl -X POST https://api.siliconwit.io/v1/alerts \ -H "Authorization: Bearer swk_your_key" \ -H "Content-Type: application/json" \ -d '{ "name": "High Temperature", "device_id": "dev_a1b2c3d4", "trigger_config": {"conditions": [{"field": "temperature", "operator": ">", "value": 40}], "logic": "all"}, "actions": [{"type": "email"}] }'See the full Automation guide for every trigger type, operator, and action, and Create Alert for the write endpoints.
Notification Methods
Section titled “Notification Methods”| Method | Availability |
|---|---|
| All plans | |
| Discord / Slack / Telegram / Webhook | All plans |
| SMS | Business plan and above |
Next Steps
Section titled “Next Steps”- Automation: full guide to building rules in the dashboard
- Public API Reference: the
/v1/alertsendpoints