VacanGuard API
One REST API for your whole fleet. JSON over HTTPS. Everything in the app is here: units, readings, alerts, rules and usage.
https://api.vacanguard.com/v1
Requests go to VacanGuard's servers, not to the cellular network. We hold the cellular connection and keep your houses, rules and alert history. This is a preview of v1 and may change before release.
| GET | /units | Every unit and its latest reading |
| GET | /units/{serial} | One unit with its tags and sensors |
| PATCH | /units/{serial} | Address, nickname, your own reference |
| GET | /units/{serial}/readings | Reading history |
| POST | /units/{serial}/pause | Pause or resume a unit |
| GET | /alerts | Alerts across the fleet |
| POST | /alerts/{id}/ack | Mark an alert handled |
| PATCH | /units/{serial}/rules | Thresholds and quiet hours |
| POST | /webhooks | Push alerts to your server |
| GET | /usage | Box-days and monitoring bill |
Quick start
- In the app, open Settings › API keys and create a key.
- List your units to see every house and its latest reading.
- Add a webhook so new alerts reach your own system the moment they open.
curl https://api.vacanguard.com/v1/units?status=alert \ -H "Authorization: Bearer $VG_KEY"
Authentication
Send your API key as a bearer token on every request. Keys see your company's units only. Create and revoke them in the app; a revoked key stops working at once.
Keep keys on your server. Never put one in a web page or a phone app.
Authorization: Bearer vg_live_...
Errors
| Code | Meaning |
|---|---|
| 400 | Malformed request. error.message names the field. |
| 401 | Missing or revoked API key. |
| 404 | No unit, alert or webhook with that id in your account. |
| 409 | Already in that state, for example pausing a paused unit. |
| 429 | Too many requests. Wait Retry-After seconds. |
{
"error": {
"code": "unit_not_found",
"message": "No unit VG-00412 in this account."
}
}Paging
Lists return up to limit items (default 50, max 200) and a next cursor. Send it back as cursor for the next page. A null next means you have them all.
GET /v1/alerts?limit=200&cursor=c_93ab
Limits and versions
Up to 10 requests a second per key, with bursts allowed. Every response carries RateLimit-Remaining.
The version is in the path. Within v1 we only add fields and endpoints; anything that would break your code ships as v2, with notice.
Times are UTC in ISO 8601. Temperatures are °F; send ?units=metric for °C.
RateLimit-Limit: 10 RateLimit-Remaining: 9 VacanGuard-Request-Id: req_4Jd9
GET/units
Every unit in your fleet, with its house and latest reading.
| Query | Description |
|---|---|
| status | ok, alert, quiet (missed check-ins) or paused |
| model | base, pm or preservation |
| q | Search by address |
GET /v1/units?status=alert
{
"data": [{
"serial": "VG-00412",
"model": "pm",
"address": "22 Cedar Ct",
"status": "alert",
"last_seen": "2026-12-04T14:36:10Z",
"latest": {
"temp_f": 41.2,
"humidity": 38,
"power": "on",
"battery_pct": 100,
"motion": false
}
}],
"next": null
}GET/units/{serial}
One unit, with the tags and sensors paired to it (lockbox, AC, water) and their last state.
{
"serial": "VG-00412",
"address": "22 Cedar Ct",
"accessories": [
{ "kind": "lockbox", "state": "closed", "battery_pct": 88 },
{ "kind": "ac", "state": "still", "battery_pct": 91 },
{ "kind": "water", "state": "dry", "battery_pct": 97 }
]
}PATCH/units/{serial}
Change the address, a nickname, or your own reference, such as the property id in your management software.
{ "address": "22 Cedar Ct", "external_ref": "PROP-1088" }GET/units/{serial}/readings
Reading history, newest first.
| Query | Description |
|---|---|
| from, to | UTC, ISO 8601 |
| fields | Any of temp_f humidity power battery_pct motion lights |
GET /v1/units/VG-00412/readings
?from=2026-12-03T00:00:00Z&fields=temp_f,humidity{
"data": [
{ "at": "2026-12-04T14:36:10Z", "temp_f": 41.2, "humidity": 38 },
{ "at": "2026-12-04T13:36:04Z", "temp_f": 43.1, "humidity": 38 }
],
"next": "c_77f1"
}POST/units/{serial}/pause
Stop a unit sending, for example when the house leases. A paused unit sends nothing and is not billed. It takes effect at the unit's next check-in.
POST/units/{serial}/resume starts it again.
{
"serial": "VG-00412",
"state": "pausing",
"effective_by": "2026-12-04T15:36:00Z"
}GET/alerts
Alerts across the fleet. Filter by open=true, type, serial or date.
Types: power_out freezing heat humidity motion lights_on lockbox ac_moved water quiet
GET /v1/alerts?open=true
{
"data": [{
"id": "alt_8Kq2",
"type": "power_out",
"serial": "VG-00107",
"address": "1418 Elm St",
"opened": "2026-12-04T14:24:02Z",
"closed": null,
"acknowledged_by": null,
"detail": { "battery_pct": 96, "temp_f": 61.0 }
}],
"next": null
}POST/alerts/{id}/ack
Mark an alert handled. Stops escalation and tells the rest of the team.
{
"by": "dana@yourcompany.com",
"note": "Breaker reset, power back."
}PATCH/units/{serial}/rules
Fleet defaults live at GET /rules and PATCH /rules. A unit's rules override them field by field; send null to fall back to the default.
{
"freezing_below_f": 38,
"humidity_above": { "pct": 70, "for_hours": 6, "hold_until": "08:00" },
"motion": { "quiet": [{ "days": "mon-sun", "from": "09:00", "to": "19:00" }] },
"power_out_after_min": 5,
"lights_on": null
}POST/webhooks
We call your URL as each alert opens, is acknowledged, and closes. Each call is signed with your webhook secret in VacanGuard-Signature, and retried for 24 hours until your server answers 2xx.
DELETE/webhooks/{id} removes one.
{
"url": "https://yourcompany.com/hooks/vacanguard",
"events": ["alert.opened", "alert.acknowledged", "alert.closed"]
}{
"event": "alert.opened",
"alert": { "id": "alt_8Kq2", "type": "power_out", "address": "1418 Elm St" }
}GET/usage
Your monitoring bill for a month: how many days each box was watching, at $8 a box a month. Paused days are not counted. The same lines appear on your invoice.
GET /v1/usage?month=2026-11
{
"month": "2026-11",
"boxes_billed": 173,
"box_days": 4920,
"rate_per_box_month_usd": 8.00,
"amount_usd": 1312.00
}