Webhooks
Last updated:
Receive PropVista events at your own endpoint: the events, the payload, signature verification, retries and replay.
How do I set up a webhook?
In PropVista, open Settings, Integrations, then the Webhooks tab, and select Add endpoint. Enter a public https:// URL, choose the events, and copy the signing secret: it is shown only once. Webhooks need a Data API plan and the permission to create API keys.
A new endpoint receives nothing until you select Send test event and your endpoint answers it with a 2xx; until then the Webhooks tab shows it as Waiting for test. Changing the URL of an endpoint switches it off the same way, until the new URL answers a test event. Events raised meanwhile are not sent later.
Which events can I receive?
| Event | Sent when |
|---|---|
lead.created | A lead is added by an agent or a connected lead source. Bulk CSV imports do not send it. |
lead.updated | A lead's details, stage, campaign or owner change. changedFields names what changed. |
deal.closed | A deal is closed as Won or Lost. |
listing.published | A listing goes live. |
project.updated | A new-home project in the catalogue changes: its price range, status, completion, sizes or description. changedFields names what changed; read the project on /v1/projects/{id}. |
project.unitsAdded | A new-home project gains units. unitIds lists them. Both project events come only for a jurisdiction your brokerage holds an active entitlement in, as on /v1/projects. |
floorplan.priceChanged | The price-list price of a floor plan in a new-home project moves, up or down: one event per plan, with the previous and new price. Find the plan by its label and exposure on /v1/projects/{id}/prices. Same entitlement rule as the project events. |
unit.priceChanged | The price of a listed unit in a new-home project moves on the builder's unit or lot list, up or down: one event per unit, with unitId, unitNumber and the previous and new price. Same entitlement rule as the project events. |
brokerage.entitled | The brokerage gains access to a product module. |
call.ringing | A call starts ringing at an agent who has a voice agent answering their unanswered calls. Sent at once, not on the usual schedule. callId matches the X-PropVista-Call-Id header on the forwarded call, forwardAfterSeconds is how long the agent's phones ring first, and matches counts the people on file with that number. person is null unless exactly one matches, and never carries staff notes, deal money or anyone else's data. |
person.erased | A person's records were erased under a deletion request. Sent once per person, after the erasure, with personId and erasedAt only: delete your own copy of that person. |
webhook.test | You select Send test event for an endpoint. |
What does a delivery contain?
Each delivery is a JSON POST:
{
"eventType": "deal.closed",
"eventVersion": 1,
"correlationId": "8b3e1f4a-2c5d-4e9f-9a1b-7c3e5d8f2a4b",
"timestamp": "2026-11-05T14:23:11.412Z",
"data": { "dealId": "cm3x0d9a20001", "outcome": "WON", "value": { "amount": "2500000.50", "currency": "AED" } }
}correlationIdis the event's id. It stays the same on every retry and replay, so use it to ignore repeats.eventVersiononly changes for a breaking change todata, announced in the changelog first. New fields can appear at any time.- Money is a decimal string with its currency, never a number.
How do I verify a delivery came from PropVista?
Every delivery has a PropVista-Signature header: pv1=t=<unix seconds>,sig=<hex HMAC-SHA-256>. To check it:
- Reject a missing header, or one that does not start with
pv1=. - Reject a timestamp more than 5 minutes from your clock.
- Compute the HMAC-SHA-256 of
<t>.<raw body>with your signing secret. - Compare it with
sigin constant time. On any failure, answer400and ignore the delivery.
import { createHmac, timingSafeEqual } from 'node:crypto';
export function verifyPropVistaSignature(secret, rawBody, header, now = Math.floor(Date.now() / 1000)) {
const match = /^pv1=t=(\d+),sig=([0-9a-f]{64})$/.exec(header ?? '');
if (!match) return false;
const [, t, sig] = match;
if (Math.abs(now - Number(t)) > 300) return false;
const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest();
return timingSafeEqual(expected, Buffer.from(sig, 'hex'));
}Sign over the raw request body exactly as received. Parsing the JSON and serialising it again changes the bytes and breaks the signature.
What happens when my endpoint fails?
- Any
2xxwithin 10 seconds counts as delivered. Answer quickly and do the work afterwards. - A failed delivery is retried with exponential backoff: by default 6 attempts in all, 30 seconds after the failure and then twice as long each time, the last about 15 minutes after the event.
- A
4xxother than408or429stops the retries at once. Timeouts, network errors,408,429and5xxare retried. - A delivery that runs out of attempts becomes a dead letter. You can replay it, or every dead letter to one endpoint over a time window, from the delivery log in Settings, Integrations, Activity and Health. Payloads are kept for 30 days.
- After 20 events in a row fail, each having used every attempt or been refused, the endpoint pauses itself and owners and admins are told. Events raised while it is paused, or while you paused it yourself, are held for up to 30 days and sent when you resume it;
call.ringingis never held. Resume it from the Webhooks tab once your receiver is fixed, then replay the dead letters.
How do I rotate the signing secret?
Rotate it from the Webhooks tab. New events are signed with the new secret at once. Retries of events from before the rotation keep the old secret for 24 hours, so accept either secret for that day.
