Webhooks Overview
Greenlight webhooks notify your systems when something changes on the Greenlight side: a prospect becomes eligible to enroll, an application is quoted or declined, a policy is issued or canceled, a policy goes delinquent, a move-out is opened, held or released, or a resident answers its consent request.
This page covers outbound webhooks, which Greenlight pushes to you. Events flowing the other way — the ones you emit and Greenlight subscribes to in order to ingest prospects — are a separate mechanism documented in Event Ingestion. The two are independent: the signing, retry, and payload rules below apply only to what Greenlight sends you.
If you ingest prospects through partner webhook events, subscribing here is not optional. One-way ingestion gives you no response to read, so these events are the only way to learn that a prospect became eligible and what its enrollment URL is.
How webhooks work
- An event occurs in Greenlight (for example, a policy is created).
- Greenlight finds every active endpoint subscribed to that event for the property manager the event belongs to, and records one delivery per endpoint.
- Each delivery is POSTed to your endpoint URL with a signature header.
- Your server verifies the signature and processes the event.
- Any
2xxresponse marks the delivery as delivered. Anything else is retried.
Subscribing to events
Endpoints are managed through the Partner API. If your property owner has no webhook subscriber yet, Greenlight creates one automatically the first time you create an endpoint, and generates its signing secret then.
POST /partners/{owner_slug}/webhooks/endpoints
Content-Type: application/json
{
"endpoint": {
"name": "Production events",
"destination_url": "https://your-server.com/webhooks/greenlight",
"events": ["prospect.ready", "prospect.ineligible", "policy.created", "policy.canceled"]
}
}
destination_url must be HTTPS and on your own domain; a Greenlight host is refused with a 422 whose detail code is own_host. An endpoint only receives the events listed in its events array, so subscribe explicitly to everything you want. See the Event Reference for the full catalog.
Event names are not checked against the catalog when you save an endpoint. A misspelled name such as policy.cancelled is accepted and simply never matches anything, so copy names from the Event Reference rather than typing them.
A successful create returns 200 with the new endpoint under endpoint. List your endpoints with GET /partners/{owner_slug}/webhooks/endpoints, which returns an empty endpoints list before you have created any.
Endpoints have a status of active, suspended, or disabled. A new endpoint always starts active; status is ignored on create. Only active endpoints receive new deliveries. Change any of name, destination_url, events, or status via PUT /partners/{owner_slug}/webhooks/endpoints/{id}, which returns the updated endpoint, and remove an endpoint with DELETE on the same path, which returns 204 with no body. Nothing is sent to a suspended or disabled endpoint: deliveries already pending or scheduled for retry are held, and go out on their normal schedule once the endpoint is active again, usually within about 20 minutes.
The API never returns the signing secret. Get it from your Partner Success Manager, and confirm it matches the endpoint with secret_fingerprint, as described in Checking where events go.
The signing secret is a 64-character hex string. Use it exactly as given, as the HMAC key string; do not hex-decode it into bytes first.
If you need Greenlight to send extra static headers with every delivery (an API gateway key, for instance), ask your Partner Success Manager. Custom headers are configured by Greenlight and cannot be set through the Partner API. They are merged in before the standard headers below, so they cannot override Content-Type or any X-Webhook-* header.
If you serve more than one property manager
The route above registers an endpoint for a single property manager, which is what you want if you are one. If instead you operate a platform that several property managers sit behind, you can register one endpoint that receives events for all of them:
POST /partners/providers/{provider}/webhooks/endpoints
The body is identical. What this covers is configured by Greenlight during onboarding, not asserted by you, so a newly onboarded property manager starts flowing to your existing endpoint without another registration call. Every delivery names its property manager in property_owner_slug, which is how you tell them apart on one stream.
Coverage can also be narrower than a whole property manager. Where you have onboarded only part of a portfolio, Greenlight configures the grant to name just those properties, and you receive events for those alone. If you expect events for a property and see none, an unconfigured property is the first thing to check with your Partner Success Manager.
Within that coverage, your provider endpoints receive events for the renters you brought to Greenlight, and every event at properties where you are the PMS of record:
- Renters you brought. Your prospects, the applications created from them, the policies those applications produced, their renewals, and delinquencies on those policies. Move-outs you opened through the API.
- Properties where you are the PMS of record. Every prospect, application, policy, delinquency and move-out at a property whose PMS of record is you, either because it integrates with you directly or because Greenlight has cut it over to you, including renters who enrolled some other way. See Recording Coverage in the PMS.
A renter who enrolled through the property manager's own invite, or through another partner, at a property where you are not the PMS of record is not sent to you. Renewal applications don't carry the original prospect, so policy_application.* events for a renewal reach you only at properties where you are the PMS of record; the renewed policy's policy.* events reach you either way.
Unlike the per-property-manager route, this one does not create your subscriber on first use — Greenlight provisions it, along with the single signing secret used for every property manager you cover. Until then the route returns 404. Ask your Partner Success Manager to set it up.
Manage the endpoint on the path you registered it on, not the {owner_slug} one:
GET /partners/providers/{provider}/webhooks/endpoints
PUT /partners/providers/{provider}/webhooks/endpoints/{id}
DELETE /partners/providers/{provider}/webhooks/endpoints/{id}
The {owner_slug} routes reach only the endpoints registered under that one property manager, so they return 404 for an endpoint registered here even when you cover that property manager. Before Greenlight has provisioned your provider subscriber, the GET above returns 404 rather than an empty list. A token not registered for {provider} gets 403 with the code forbidden on every provider path. These routes use the same scopes as the {owner_slug} webhook routes.
Two consequences of provider coverage are worth designing for:
- Overlapping registrations duplicate events. If a property manager you cover through a provider endpoint also has an endpoint of its own under
{owner_slug}, each event is delivered to both, with different delivery IDs. Register one or the other for a given property manager. - Property-scoped coverage only sees events tied to a property. When your grant names specific properties, an event Greenlight cannot attribute to a property is not delivered to you. In practice that means every prospect event, including
prospect.ready,prospect.ineligibleandprospect.error, for a prospect that has not resolved to a building, and every event for a move-out not linked to a known property.
Payload structure
Every webhook body has exactly four top-level keys:
{
"event": "policy.created",
"occurred_at": "2026-10-19T14:03:27.512Z",
"property_owner_slug": "acme-residential",
"data": {
"insurance_policy": {
"id": "policy_a1b2c3d4",
"policy_number": "RH12345678",
"status": "active",
"pms_type": "yardi",
"pms_property_id": "prop-1",
"pms_unit_id": "unit-101",
"pms_resident_id": "t0001234",
"source_prospect_id": "your-prospect-123"
}
}
}
property_owner_slug names the property manager the event belongs to, and is always present. If your endpoint receives events for more than one, route on this field: the property identifiers inside data (pms_property_id, or property.external_system_id) are only unique within a single property manager, so the same one can belong to two of them. It sits in the body rather than a header so the signature covers it.
data is keyed by the subject of the event: third_party_prospect, insurance_policy, policy_application, delinquency, or move_out. Most events carry that one key alone. The move-out consent and hold events add resident, reason, or both alongside move_out, and a hold on part of a move-out's money also adds deposit_settlement_id and deposit_settlement_leg_id; see the Event Reference. There is no event_id or metadata field in the body — the delivery ID is in a header instead.
occurred_at is when the event happened on Greenlight's side, in ISO 8601 UTC. Every delivery of one event carries the same value, and retries never change it. X-Webhook-Timestamp is different: it is the time of each attempt, for signature checks.
The payload is built once, when the event is dispatched, and stored with the delivery. Every retry resends that same snapshot, so a delivery that lands hours late describes the record as it was then, not as it is now.
Headers
Every delivery includes these headers:
| Header | Description |
|---|---|
Content-Type | Always application/json |
X-Webhook-Event | The event name, matching event in the body |
X-Webhook-Delivery | Delivery ID — stable across retries, use it for idempotency |
X-Webhook-Timestamp | Unix timestamp (seconds) of this attempt |
X-Webhook-Signature | Signature in the form t={timestamp},v1={hex} |
Verifying signatures
The signature is an HMAC-SHA256 of {timestamp}.{raw_request_body}, keyed with your signing secret and hex-encoded. The t= value in the header is the same timestamp as X-Webhook-Timestamp.
You must verify against the raw request body bytes. Parsing the JSON and re-serializing it will produce a different string and the signature will not match.
const crypto = require('crypto');
function verifyWebhookSignature(rawBody, signatureHeader, secret) {
const v1 = /v1=([0-9a-f]+)/.exec(signatureHeader)?.[1];
const timestamp = /t=(\d+)/.exec(signatureHeader)?.[1];
if (!v1 || !timestamp) return false;
const expected = crypto
.createHmac('sha256', secret)
.update(`${timestamp}.${rawBody}`)
.digest('hex');
// timingSafeEqual throws rather than returning false on a length mismatch
if (v1.length !== expected.length) return false;
return crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
// Express.js — note express.raw, not express.json
app.use('/webhooks/greenlight', express.raw({ type: 'application/json' }));
app.post('/webhooks/greenlight', (req, res) => {
const rawBody = req.body.toString('utf8');
if (!verifyWebhookSignature(rawBody, req.headers['x-webhook-signature'], WEBHOOK_SECRET)) {
return res.status(401).send('Invalid signature');
}
handleWebhookEvent(req.headers['x-webhook-delivery'], JSON.parse(rawBody));
res.status(200).send('OK');
});
import hmac
import hashlib
import re
from flask import Flask, request, abort
app = Flask(__name__)
def verify_webhook_signature(raw_body, signature_header, secret):
v1 = re.search(r"v1=([0-9a-f]+)", signature_header or "")
timestamp = re.search(r"t=(\d+)", signature_header or "")
if not v1 or not timestamp:
return False
expected = hmac.new(
secret.encode(),
f"{timestamp.group(1)}.{raw_body}".encode(),
hashlib.sha256,
).hexdigest()
return hmac.compare_digest(v1.group(1), expected)
@app.route('/webhooks/greenlight', methods=['POST'])
def handle_webhook():
raw_body = request.get_data(as_text=True)
if not verify_webhook_signature(raw_body, request.headers.get('X-Webhook-Signature'), WEBHOOK_SECRET):
abort(401)
process_webhook_event(request.headers.get('X-Webhook-Delivery'), request.get_json())
return 'OK', 200
Greenlight does not currently reject or re-sign deliveries based on timestamp age, so a retried delivery arriving hours later still carries a valid signature for its own attempt timestamp. If you enforce a freshness window of your own, make it generous enough to accommodate the retry schedule below.
Idempotency
A retried delivery reuses the same X-Webhook-Delivery ID, so store it and skip anything you have already processed:
async function handleWebhookEvent(deliveryId, event) {
if (await db.hasProcessedDelivery(deliveryId)) {
return;
}
await db.recordDelivery(deliveryId, event);
switch (event.event) {
case 'policy.created':
await handlePolicyCreated(event.data.insurance_policy);
break;
// ...
}
}
Note that a single Greenlight event fans out to one delivery per subscribed endpoint, so two endpoints subscribed to policy.created receive two deliveries with two different IDs for the same underlying event.
Greenlight can also re-send policy.created for a policy it has already announced, as a new delivery with a new X-Webhook-Delivery ID. Treat a policy.created for a policy id you already hold as an update to that policy, not a new one.
Ordering
Deliveries are queued and retried independently, so events can arrive out of order. A retried policy.created can land after the policy.canceled that followed it.
One action on Greenlight's side can also produce several events. Revising a policy emits policy.updated when the revision changes the policy's payload, and policy.documents_updated when it changes the policy's documents. These are separate deliveries with no ordering guarantee between them. A cancellation is the exception: it emits only the status event (policy.canceled or policy.expired, as described in the Event Reference), with no policy.updated alongside it.
Treat each payload as a statement of current state rather than a step in a sequence. Reconcile against the status field in the payload and what you already hold, and do not drive a state machine off arrival order. When you need certainty, GET the prospect or policy from the Partner API. A GET always returns the current record.
For prospects, use status_version to tell which result is newer. It goes up by one every time the prospect's status changes, including a move back to processing after you update it, and webhooks and the prospect GET carry the same value. Keep the highest status_version you have seen and ignore any payload with a lower one. If two payloads have the same status_version, compare status_changed_at, the time the prospect entered that status. This stops a late prospect.ready from bringing back an enrollment link that a newer result replaced. Don't order prospects by occurred_at: the payload is built when the event is dispatched, which can be slightly after it happened, so the status fields in the body can be newer than occurred_at.
Timeouts and retries
| Behavior | Value |
|---|---|
| Connect and read timeout | 10 seconds |
| Success | Any 2xx response |
| Maximum attempts | 25 |
| Backoff | 2^attempt seconds, capped at 1 hour |
| Total retry window | Roughly 15 hours |
| Per-endpoint rate limit | 1,000 deliveries per minute |
Delays grow from 4 seconds up to the 1-hour cap by the eleventh attempt, then stay hourly. After 25 attempts the delivery is marked failed and is not retried automatically.
If your endpoint exceeds the rate limit, the delivery is marked rate_limited and retried in 60 seconds without consuming an attempt.
Endpoint requirements
Your webhook endpoint must:
- Accept
POSTrequests over HTTPS - Respond within 10 seconds — queue slow work rather than doing it inline
- Return a
2xxstatus on success - Be publicly reachable (Greenlight does not deliver from a fixed IP range)
Inspecting deliveries
The Partner API exposes delivery history so you can debug without asking Greenlight:
# List deliveries, newest first, optionally filtered by status
GET /partners/{owner_slug}/webhooks/endpoints/{endpoint_id}/deliveries?status=failed&page=1&per_page=50
# Inspect one delivery, including the exact payload sent and failure reason
GET /partners/{owner_slug}/webhooks/endpoints/{endpoint_id}/deliveries/{id}
# Re-enqueue a failed or stuck delivery
POST /partners/{owner_slug}/webhooks/endpoints/{endpoint_id}/deliveries/{id}/retry
The list is paginated with page (default 1) and per_page (default 50, maximum 100), and the response carries meta with page, per_page, total_count, and total_pages. A status value that is not one of the statuses below is ignored rather than rejected, so a typo returns every delivery instead of an error.
{
"status_code": 200,
"deliveries": [
{
"id": 90211,
"endpoint_id": 37,
"destination_url": "https://your-server.com/webhooks/greenlight",
"status": "failed",
"attempt_number": 25,
"payload": { "event": "policy.created", "occurred_at": "2026-09-01T13:02:44.118Z", "property_owner_slug": "acme-residential", "data": { } },
"last_attempted_at": "2026-09-02T04:11:09Z",
"delivered_at": null,
"next_retry_at": null,
"last_attempt_failure_reason": "HTTP 503: Service Unavailable",
"duration_ms": 10004,
"created_at": "2026-09-01T13:02:44Z",
"updated_at": "2026-09-02T04:11:09Z"
}
],
"meta": { "page": 1, "per_page": 50, "total_count": 1, "total_pages": 1 },
"request_id": "6f1c2b9e-7d4a-4c1e-9a55-0b8f3d2e1a77"
}
| Field | Description |
|---|---|
id | Delivery ID, the same value sent as X-Webhook-Delivery |
endpoint_id | The endpoint the delivery belongs to |
destination_url | The URL the latest attempt was sent to. It stays as sent if you change the endpoint's URL afterwards; a delivery not yet attempted, or attempted before this was recorded, reports the endpoint's current URL |
status | pending, delivering, delivered, retrying, rate_limited, or failed |
attempt_number | The attempt the delivery is on: the one that delivered it or last failed, or, while retrying, the next one. A retry restarts it at 1. A rate_limited wait doesn't count as an attempt |
payload | The exact body sent, which is also what the signature covered |
last_attempted_at, delivered_at, next_retry_at | Timestamps; null until they apply |
last_attempt_failure_reason | Why the most recent attempt failed: HTTP <status>: <your response body, truncated to 200 characters>, or a message starting timeout:, connection_failed:, tls_error:, destination_refused:, or unexpected_error:. null once the delivery succeeds or is retried |
duration_ms | How long the most recent attempt took |
Retry applies to a failed delivery, and to one stuck in delivering for over 2 hours. It returns 204 with no body, and starts the delivery over with a fresh set of attempts on the normal backoff schedule. Greenlight usually recovers an interrupted send on its own within an hour, so a delivery still delivering after 2 hours will not be resent without your retry. A test ping is never retried and returns 409. Any other status also returns 409: the delivery either succeeded or already has an attempt in progress or scheduled. A retried delivery keeps its delivery ID and resends the original payload. Retrying a delivery whose endpoint is not active still returns 204, but the delivery is held until the endpoint is active again.
Every attempt checks the endpoint's current destination_url and sends only to the public address it checked. If the host resolves to a private, loopback or link-local address, nothing is sent and the delivery fails at once, without retries, with last_attempt_failure_reason starting destination_refused:. Point the endpoint at a public host, then retry the delivery. A host that does not resolve is retried like any other connection failure.
If you registered on the provider route, the {owner_slug} routes cannot reach your deliveries and return 404; where the property manager has no webhook subscriber of its own and your provider has one, the error names the provider route to use. Use these instead, which cover every endpoint you registered there and every property manager you are currently granted:
# List deliveries across all your endpoints, newest first
GET /partners/providers/{provider}/webhooks/deliveries?owner_slug=hudson-residential-group&status=failed
# Look up one delivery by the X-Webhook-Delivery header value you received
GET /partners/providers/{provider}/webhooks/deliveries/{id}
# Re-enqueue a failed or stuck delivery
POST /partners/providers/{provider}/webhooks/deliveries/{id}/retry
The provider list is paginated the same way as the per-endpoint list, with page, per_page and meta. It accepts these filters, in any combination:
| Parameter | Matches |
|---|---|
owner_slug | Deliveries whose property_owner_slug is this property manager |
event | One event name, such as prospect.ready |
status | One delivery status. Anything else returns 400 |
endpoint_id | One of your endpoints |
created_after, created_before | An ISO 8601 timestamp, read as UTC when it has no offset; created_after is inclusive, created_before exclusive. Anything else returns 400 |
source_prospect_id | Prospect and policy application deliveries about the prospect you created with this ID |
Each filter takes one value. A refused filter returns 400 with one details entry whose field is the parameter name (see Errors).
Checking where events go
A property manager's events can reach more than one endpoint: those registered on its {owner_slug} route, and, if you serve several property managers, your provider endpoints. Each is signed with its own subscriber's secret. Before sending real traffic, list what receives a property manager's events:
GET /partners/{owner_slug}/webhooks/routing
{
"status_code": 200,
"property_owner_slug": "acme-residential",
"endpoints": [
{
"id": 298,
"name": "Acme direct",
"destination_url": "https://your-server.com/webhooks/greenlight/acme",
"status": "active",
"events": ["prospect.ready"],
"suspension_reason": null,
"created_at": "2026-10-01T12:00:00.000Z",
"updated_at": "2026-10-01T12:00:00.000Z",
"receives_events": true,
"subscriber": {
"kind": "owner",
"provider": null,
"grant_scope": null,
"secret_fingerprint": "9f2c41ab07de"
}
},
{
"id": 265,
"name": "All property managers",
"destination_url": "https://your-server.com/webhooks/greenlight",
"status": "active",
"events": ["prospect.created", "prospect.ready", "policy.created"],
"suspension_reason": null,
"created_at": "2026-09-20T12:00:00.000Z",
"updated_at": "2026-09-20T12:00:00.000Z",
"receives_events": true,
"subscriber": {
"kind": "provider",
"provider": "your_provider",
"grant_scope": "whole_owner",
"secret_fingerprint": "41d0e8c3b2aa"
}
}
],
"request_id": "6f1c2b9e-7d4a-4c1e-9a55-0b8f3d2e1a77"
}
| Field | Description |
|---|---|
receives_events | true when the endpoint is active, subscribes to at least one event and, for a provider endpoint under listed_properties, at least one property is listed. A listed endpoint with false receives nothing. |
subscriber.kind | owner for an endpoint registered on the {owner_slug} route, provider for one registered on your provider route |
subscriber.grant_scope | Provider endpoints only: whole_owner, or listed_properties when you receive events for only some of the property manager's properties. null for owner. |
subscriber.secret_fingerprint | The first 12 hex characters of the SHA-256 of the signing secret. The secret itself is never returned. |
Only endpoints you can manage are listed: those on the {owner_slug} route, which every partner granted this property manager can manage, and your own provider endpoints. Another partner's provider endpoints are never shown. Two endpoints listed for the same events means two deliveries per event, with different signing secrets — usually an endpoint registered on the {owner_slug} route before your provider endpoint existed.
To confirm which secret you hold for an endpoint, compute its fingerprint and compare:
crypto.createHash('sha256').update(secret).digest('hex').slice(0, 12);
hashlib.sha256(secret.encode()).hexdigest()[:12]
Then send that endpoint a signed webhook.test event and check that your signature verification accepts it:
POST /partners/{owner_slug}/webhooks/endpoints/{id}/ping
{ "status_code": 202, "delivery_id": 88121, "request_id": "6f1c2b9e-7d4a-4c1e-9a55-0b8f3d2e1a77" }
The test goes out through the normal delivery path and arrives with the returned delivery_id in X-Webhook-Delivery. A ping gets one attempt and is not retried, and the retry routes return 409 for it: if your receiver rejects it, fix the receiver and ping again. You can also follow it with the deliveries routes: the {owner_slug} ones for an endpoint on the {owner_slug} route, or the provider ones for a provider endpoint. Only an active endpoint can be pinged; any other status returns 409. An endpoint whose host resolves to a private, loopback or link-local address returns 422 with internal_host on destination_url. An id not in the routing list returns 404.
Troubleshooting
Signature validation fails
- Compare your secret's fingerprint with the endpoint's
secret_fingerprintin the routing view — each subscriber has its own secret - Verify you are hashing the raw body, not a re-serialized object
- Extract the hex digest from the
v1=portion — the header is not a bare digest - The header name is
X-Webhook-Signature, and the signed string joins timestamp and body with a period
No deliveries arriving
- Check
GET /partners/{owner_slug}/webhooks/routinglists the endpoint withreceives_events: true - Confirm the endpoint status is
activeand the event name is in itseventsarray - Confirm the URL is HTTPS and publicly reachable; a
destination_refused:failure means its host resolves to a private address - Check the deliveries endpoint above for
failedrecords and theirlast_attempt_failure_reason
Duplicate events
- Expected on retry. Deduplicate on
X-Webhook-Delivery. - A re-sent
policy.createdarrives with a newX-Webhook-Delivery. Match it on the policyidand treat it as an update.
Next steps
- Event Reference — every event and its payload