API reference · v1 Preview

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 network connection, add your houses, rules and alert history, and pass network usage through at cost. This is a preview of v1 and may change before release.

GET/unitsEvery 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}/readingsReading history
POST/units/{serial}/pausePause or resume a unit
GET/alertsAlerts across the fleet
POST/alerts/{id}/ackMark an alert handled
PATCH/units/{serial}/rulesThresholds and quiet hours
POST/webhooksPush alerts to your server
GET/usageNetwork usage, at cost

Quick start

  1. In the app, open Settings › API keys and create a key.
  2. List your units to see every house and its latest reading.
  3. Add a webhook so new alerts reach your own system the moment they open.
Request
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.

Header
Authorization: Bearer vg_live_...

Errors

CodeMeaning
400Malformed request. error.message names the field.
401Missing or revoked API key.
404No unit, alert or webhook with that id in your account.
409Already in that state, for example pausing a paused unit.
429Too many requests. Wait Retry-After seconds.
Error body
{
  "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.

Next page
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.

Response headers
RateLimit-Limit: 10
RateLimit-Remaining: 9
VacanGuard-Request-Id: req_4Jd9

GET/units

Every unit in your fleet, with its house and latest reading.

QueryDescription
statusok, alert, quiet (missed check-ins) or paused
modelbase, pm or preservation
qSearch by address
Request
GET /v1/units?status=alert
Response
{
  "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.

Response
{
  "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.

Body
{ "address": "22 Cedar Ct", "external_ref": "PROP-1088" }

GET/units/{serial}/readings

Reading history, newest first.

QueryDescription
from, toUTC, ISO 8601
fieldsAny of temp_f humidity power battery_pct motion lights
Request
GET /v1/units/VG-00412/readings
    ?from=2026-12-03T00:00:00Z&fields=temp_f,humidity
Response
{
  "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 adds no usage. It takes effect at the unit's next check-in.

POST/units/{serial}/resume starts it again.

Response
{
  "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

Request
GET /v1/alerts?open=true
Response
{
  "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.

Body
{
  "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.

Body
{
  "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.

Body
{
  "url": "https://yourcompany.com/hooks/vacanguard",
  "events": ["alert.opened", "alert.acknowledged", "alert.closed"]
}
What we send
{
  "event": "alert.opened",
  "alert": { "id": "alt_8Kq2", "type": "power_out", "address": "1418 Elm St" }
}

GET/usage

What the cellular network charged for your fleet in a month, by unit, at the network's own rate. The same lines appear on your invoice.

Request
GET /v1/usage?month=2026-11
Response
{
  "month": "2026-11",
  "units_active": 173,
  "events": 124560,
  "sms": 312,
  "network_cost_usd": 93.42
}