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.
Set up an endpoint
- Open Account → Security → Webhooks.
- Enter a public
https://URL, choose the events, and optionally the communities. - Copy the signing secret (
whsec_…): it is shown once. You can roll a new one later. - 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.
Event types
| Type | Sent when |
|---|---|
request.created | A request was created |
request.status_changed | A request changed status |
request.deleted | A request was deleted |
violation.created | A violation was created |
violation.status_changed | A violation changed status |
violation.resolved | A violation was resolved |
violation.deleted | A violation was deleted |
work_order.created | A work order was created |
work_order.status_changed | A work order changed status |
work_order.deleted | A work order was deleted |
invoice.created | An invoice was created |
invoice.payment_received | A payment was recorded on an invoice |
invoice.cancelled | An invoice was cancelled |
invoice.deleted | An invoice was deleted |
webhook.ping | You pressed “Send test event”. |
Payload
A POST with a JSON body. data.object.url is the record in the API.
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
{
"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-…"
}
}
}
| Field | Description |
|---|---|
| id | The event id (evt_…), the same for every endpoint it went to. Use it to ignore repeats. |
| type | One of the event types above. |
| community | The community it happened in. |
| data.object | The 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. |
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.
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));
}
function verify(string $rawBody, string $header, string $secret): bool
{
parse_str(str_replace(',', '&', $header), $p);
$expected = hash_hmac('sha256', $p['t'] . '.' . $rawBody, $secret);
return abs(time() - (int) $p['t']) < 300 && hash_equals($expected, $p['v1']);
}
$ok = verify(file_get_contents('php://input'), $_SERVER['HTTP_PERFECTHOA_SIGNATURE'], getenv('PERFECTHOA_WEBHOOK_SECRET'));
import hashlib, hmac, time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
return abs(time.time() - int(parts["t"])) < 300 and hmac.compare_digest(expected, parts["v1"])
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
idyou have seen and read the current state fromurl. - Redirects are not followed. Each endpoint's page lists recent deliveries, with a Resend button.
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.
ngrok http 3000
# then add https://<your-tunnel>.ngrok.app/perfecthoa as a webhook endpoint