New: Manage your HOA from your favorite AI agent with our MCP server — see how to connect ›
Developers

Webhooks

Get a signed HTTPS notification the moment a request, violation, work order or invoice changes, and keep your accounting tool, chat channel or automations in sync without polling.

Version v1 Spec OpenAPI 3.1 Base URL https://app.perfecthoa.com/api/v1
Webhooks

Overview

Each event tells you what changed and links to the record in the API. Fetch the details with your API key, so a notification never carries more than the receiver may see, and your integration always reads the current state.

Signed

HMAC-SHA256 with a per-endpoint secret and a timestamp against replays.

Retried

Failed deliveries are retried for about a day and a half.

Scoped

Only events of communities and areas the endpoint's owner can see.

Webhooks

Set up an endpoint

  1. Open Account → Security → Webhooks.
  2. Enter a public https:// URL, choose the events, and optionally the communities.
  3. Copy the signing secret (whsec_…): it is shown once. You can roll a new one later.
  4. Press Send test event and check that your endpoint answered with a 2xx.

Private and internal addresses (localhost, 10.x, 192.168.x, cloud metadata…) are refused. For local development, expose your server with a tunnel such as ngrok or Cloudflare Tunnel.

Webhooks

Event types

TypeSent when
request.createdA request was created
request.status_changedA request changed status
request.deletedA request was deleted
violation.createdA violation was created
violation.status_changedA violation changed status
violation.resolvedA violation was resolved
violation.deletedA violation was deleted
work_order.createdA work order was created
work_order.status_changedA work order changed status
work_order.deletedA work order was deleted
invoice.createdAn invoice was created
invoice.payment_receivedA payment was recorded on an invoice
invoice.cancelledAn invoice was cancelled
invoice.deletedAn invoice was deleted
webhook.pingYou pressed “Send test event”.
Webhooks

Payload

A POST with a JSON body. data.object.url is the record in the API.

POST your-endpoint
POST /perfecthoa HTTP/1.1
Content-Type: application/json
User-Agent: PerfectHOA-Webhooks/1.0
PerfectHOA-Event: violation.status_changed
PerfectHOA-Delivery: 0b7c2f6e-5a1d-4c33-9b8e-1f2a3c4d5e6f
PerfectHOA-Signature: t=1763000000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
Body
{
  "id": "evt_2b6f0c7e9f2b4c0e8a1d3c5b7e9f1a2b",
  "type": "violation.status_changed",
  "api_version": "v1",
  "created_at": "2026-11-12T14:03:22+00:00",
  "community": {"id": "5803ff2f-00bd-48f2-ae26-ea62d1d16d11", "name": "Lakeside HOA"},
  "data": {
    "object": {
      "object": "violation",
      "id": "7d1c5e2a-3b4f-4c8e-9a61-2f0d8b4c6e19",
      "status": "fined",
      "unit_id": "c2a1f0e4-9d3b-4f7a-8c21-6e5d4b3a2f10",
      "url": "https://app.perfecthoa.com/api/v1/communities/5803ff2f-…/violations/7d1c5e2a-…"
    }
  }
}
FieldDescription
idThe event id (evt_…), the same for every endpoint it went to. Use it to ignore repeats.
typeOne of the event types above.
communityThe community it happened in.
data.objectThe kind (request, violation, work_order, invoice), its id, status, unit and API url. Invoices also carry total and amount_due; status changes carry previous_status.
Webhooks

Verify signatures

Compute an HMAC-SHA256 of t + "." + the raw request body with your signing secret, compare it with v1 in constant time, and reject a t more than five minutes old. Use the raw body: re-encoding the JSON breaks the signature.

Verify
import crypto from "node:crypto";

function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}
Webhooks

Delivery & retries

  • Answer with any 2xx within 10 seconds. Do slow work afterwards (queue it).
  • Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours.
  • An endpoint whose deliveries keep failing (10 in a row, after their retries) is turned off; turn it back on from its page.
  • Events can arrive more than once or out of order: ignore an id you have seen and read the current state from url.
  • Redirects are not followed. Each endpoint's page lists recent deliveries, with a Resend button.
Webhooks

Testing

Use Send test event on the endpoint's page: it delivers a webhook.ping (tried once, never counted against the endpoint). To receive events on your machine, run a tunnel and point a test endpoint at it.

Terminal
ngrok http 3000
# then add https://<your-tunnel>.ngrok.app/perfecthoa as a webhook endpoint