Quick Start Guide
This walks through one end-to-end enrollment on staging: get a prospect into Greenlight, wait for it to become eligible, send the renter to Greenlight, and confirm the policy. Budget an afternoon.
Before you start
Your Partner Success Manager provides:
- A source code identifying you, used as
sourceon every prospect - A webhook signing secret, for verifying the events Greenlight sends you
- An event destination and credentials, if you are ingesting via partner webhook events
- Auth0 credentials, if you are calling the Partner API
- Property owner slugs, unless you provision your own owner, below
If you are embedding, also send them every staging and production HTTPS origin that will frame the Greenlight flow. The same allowlist controls both iframe rendering and postMessage delivery.
Are you sending your own property owners and properties?
Skip this if Greenlight already created your property owner and roster — your Partner Success Manager gave you the slug, and you can start at Step 1.
If you manage your own portfolio, provision your property owner, properties, and units first. Every step below assumes the property already exists in Greenlight: Step 1's prospect can't resolve to a property that isn't there, and eligibility will never clear it. See the Partner Onboarding API Overview to create your owner and roster before starting Step 1.
Step 1: Get a prospect into Greenlight
Everything starts with a prospect. Your source and your own prospect ID together identify the renter across every subsequent event and webhook, whichever path you use.
Option A: Emit an event (preferred)
Send Greenlight events in your own payload shape and let Greenlight map them. Before your first event, Greenlight needs samples of what you emit so it can write the normalizer and register your event types — see Event Ingestion.
Once that is in place, emit to the destination Greenlight gave you:
{
"source": "acme",
"event_type": "ProspectUpdate",
"payload": {
"acme_prospect_id": "test-001",
"external_property_id": "prop-1",
"event_date": "2026-07-24T15:04:05Z",
"first_name": "Jordan",
"last_name": "Rivera",
"email": "renter@example.com",
"phone": "5559876543",
"earliest_move_in": "2026-09-01"
}
}
The payload field names are whatever your system already uses; the example above is illustrative. What matters is that your prospect ID, the PMS property ID, and an event timestamp are in there somewhere, because those three drive upserting, property owner resolution, and ordering.
Ingestion is one-way, so there is no response to check. Move to step 2 and watch for prospect.created. If nothing arrives, the usual causes are a property whose integration code Greenlight does not recognize, or a value Greenlight rejects — a phone that is not 10 digits once punctuation and a leading 1 are removed is the common one.
Option B: Call the API
Push the prospect directly and get it back synchronously, including validation errors. This is the faster path to a working integration because it does not wait on a Greenlight-built adapter.
$TOKEN below is an access token from POST /token, which every call in this guide needs. Every Partner API call goes to the greenlightrent.com gateway shown in the environments tables; the event-ingestion gateway is where you emit events, and its credentials do not work here.
curl -X POST https://api.stage.greenlightrent.com/partners/acme-properties/prospects \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prospect": {
"source": "acme",
"source_prospect_id": "test-001",
"email": "renter@example.com",
"phone": "5559876543",
"first_name": "Jordan",
"last_name": "Rivera",
"birthdate": "1990-04-12",
"lease_start_date": "2026-09-01",
"lease_end_date": "2027-08-31",
"monthly_rent_cents": 200000,
"deposit_amount_cents": 200000,
"screening_result": "approved",
"employment_status": "employed",
"yearly_income": 95000,
"has_ssn": false,
"terms_accepted_at": "2026-07-24T15:04:05Z"
}
}'
A success returns the prospect, with 201 on a create and 200 on an update. What you act on is the status field, which on this first call will be processing — Greenlight has everything it needs and is checking eligibility.
Greenlight normalizes phone to 10 digits, so +1 (555) 987-6543 is stored as 5559876543. A number that is not 10 digits after that is rejected with a 422, message "Prospect invalid.", and a detail with field prospect.phone and code phone_invalid.
If you get incomplete instead, a required field is missing, and the response lists it in missing_fields. terms_accepted_at is the exception: leaving it out of a new prospect is refused with a 422 (blank) rather than held at incomplete. Re-POST with the missing values (see the Prospect Field Reference); the endpoint is an upsert, so repeat calls update the same record.
Which fields count toward completeness depends on your enrollment source. Sources configured for optional ingest fields do not need screening_result, employment_status, or yearly_income — omitting one of those does not hold the prospect at incomplete. Everything else in the payload above is required on every source, except deposit_amount_cents when guarantor_coverage is true. Confirm with your Partner Success Manager which applies to you.
Both options write the same record keyed on (source, source_prospect_id), so you can start on the API and move to events later without changing anything downstream.
Step 2: Wait for eligibility
Eligibility runs asynchronously. When it finishes the prospect becomes ready if the renter can enroll, or ineligible if they qualify for nothing.
Register a webhook endpoint so you find out. If you ingested via events, this is not optional — it is the only way the enrollment URL reaches you:
curl -X POST https://api.stage.greenlightrent.com/partners/acme-properties/webhooks/endpoints \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"endpoint": {
"name": "Staging",
"destination_url": "https://your-server.com/webhooks/greenlight",
"events": ["prospect.ready", "prospect.ineligible", "policy_application.declined", "policy.created"]
}
}'
While you are building, it is fine to fetch the prospect directly. Reading works even on a webhook-first integration, so this is the quickest way to see whether your events landed:
curl https://api.stage.greenlightrent.com/partners/acme-properties/prospects/acme/test-001 \
-H "Authorization: Bearer $TOKEN"
Gate on enrollment_url, not on status alone. A ready prospect always carries enrollment_url; before then it is null, and it stays null on a prospect that ends ineligible (it qualifies for no product) or error. Resolving the property and unit, and Greenlight preparing the renter's enrollment, both happen before ready. An ineligible prospect is your signal to read the eligibility fields, on the prospect.ineligible webhook or on GET; Eligibility lists every reason and what to do about it. sdi_eligibility_status and cd_eligibility_status say which products were declined (null until decided), and sdi_ineligibility_reasons and cd_ineligibility_reasons carry human-readable strings, [] when there is nothing to report. "Property must be present" — Greenlight could not resolve the property — is the usual entry. When guarantor_coverage is true, the prospect also carries rg_ineligibility_reasons (an array; [] means no reason has been recorded) and rg_eligibility_status (eligible or ineligible). rg_eligibility_status is omitted while eligibility is pending, so an empty reasons array during processing is not a decline.
Every prospect.* webhook carries the same eligibility fields as GET. When guarantor_coverage is true, it also includes the Greenlight Guarantee fields: rg_eligibility_status (omitted until eligibility has been decided) and rg_ineligibility_reasons.
offered_products will still be empty at this point. Greenlight cannot price the products until the renter supplies the last few underwriting inputs inside the enrollment flow, so plan your UI around sending the renter to Greenlight rather than quoting them beforehand. If you collect an SSN, education, citizenship, employment, and income in your own application, sending them all lets Greenlight price the renter up front.
Step 3: Receive webhooks
Your endpoint must verify the signature before trusting anything in the body. The signature covers the raw request body, so read it before any JSON middleware touches it.
const crypto = require('crypto');
app.use('/webhooks/greenlight', express.raw({ type: 'application/json' }));
app.post('/webhooks/greenlight', (req, res) => {
const rawBody = req.body.toString('utf8');
const header = req.headers['x-webhook-signature'];
const timestamp = /t=(\d+)/.exec(header)?.[1];
const v1 = /v1=([0-9a-f]+)/.exec(header)?.[1];
const expected = crypto
.createHmac('sha256', process.env.WEBHOOK_SIGNING_SECRET)
.update(`${timestamp}.${rawBody}`)
.digest('hex');
// timingSafeEqual throws rather than returning false on a length mismatch
const signatureValid =
v1 &&
v1.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
if (!signatureValid) {
return res.status(401).send('Invalid signature');
}
const event = JSON.parse(rawBody);
switch (event.event) {
case 'prospect.ready':
onProspectReady(event.data.third_party_prospect);
break;
case 'prospect.ineligible':
onProspectIneligible(event.data.third_party_prospect);
break;
case 'policy_application.declined':
onDeclined(event.data.policy_application);
break;
case 'policy.created':
onPolicyCreated(event.data.insurance_policy);
break;
}
res.status(200).send('OK');
});
Respond within 10 seconds. Queue anything slower. Full details in the Webhooks Overview.
Step 4: Send the renter to Greenlight
Use the enrollment_url from the prospect response verbatim. It already contains the flow type, property owner, source, prospect ID, the required email parameter, and a renter_journey_ref parameter that ties the visit to the prospect.
For an embedded integration, load it in an iframe:
<iframe
id="enrollment-iframe"
src="<enrollment_url from the API>"
width="100%"
height="800"
frameborder="0"
allow="payment">
</iframe>
enrollment_url opens in the flow your source is configured for. For an expedited integration, or any full-page redirect, use hosted_enrollment_url instead and redirect to it. You can append redirect_url to control where the renter lands afterwards. It must be https, and its host must be, or be a subdomain of, a domain Greenlight has allowlisted for your source, or the parameter is ignored.
Once the renter has been underwritten, offered_products gains links with the product preselected (and the cadence, for Greenlight Deposit), which are useful for sending them back to a specific choice.
Step 5: Handle the outcome
Embedded integrations receive a postMessage when the flow reaches a terminal state: success_shown as soon as the confirmation screen loads, then completed, declined, or blocked when the renter clicks the closing button. The payload is a plain string, not an object.
window.addEventListener('message', (event) => {
if (event.origin !== 'https://stage.greenlightrent.com') return;
if (event.data === 'success_shown') {
markEnrollmentFinished();
} else if (event.data === 'completed') {
showSuccessState();
} else if (event.data === 'declined' || event.data === 'blocked') {
showFallbackDepositOptions();
}
});
Use this to update your UI, and the policy.created webhook to update your records. The browser message is a hint; the webhook is the fact.
Step 6: Test the edge cases
- Success — prospect goes
ready, renter enrolls, you receivepolicy.created - Incomplete prospect — omit
birthdate, which is required on every source, and confirm you handleincomplete - Declined — confirm your UI degrades gracefully on
declined - Abandonment — close the tab mid-flow, reopen the same enrollment URL, confirm the renter resumes
- Duplicate webhooks — replay a delivery and confirm you deduplicate on
X-Webhook-Delivery - Mobile — check the iframe height on a narrow viewport
If you ingest via events, also exercise:
- Out-of-order events — emit an update with an older timestamp than one already applied and confirm it does not revert the prospect
- Replay — re-emit an event you already sent and confirm nothing changes
- Unknown property — emit an event with a property ID Greenlight does not have, and confirm you notice the resulting silence
Staging lets you reset test data so you can reuse identifiers:
curl -X DELETE "https://api.stage.greenlightrent.com/residents/reset?email=renter@example.com&owner_slug=acme-properties" \
-H "Authorization: Bearer $TOKEN"
Step 7: Go live
- Request production credentials from your Partner Success Manager
- Point events at the production destination, and any Partner API calls at
https://api.prod.greenlightrent.com - Create a production webhook endpoint — endpoints do not carry over from staging
- Confirm your production domain is allowlisted for framing and events
- Put monitoring and alerting on your webhook endpoint before the first renter hits it, not after
- Soft launch on a limited set of properties for a couple of weeks before opening it up
- Watch your first live enrollments through the deliveries endpoint
If your organization requires a security review of the integration, start it early. Reviews here typically run a test suite against the finished, production-ready integration rather than against a design document, so it gates go-live rather than running alongside the build.
Next steps
- Partner Onboarding API Overview — provisioning your own property owners, properties, and units
- Event Ingestion — the preferred ingestion path in full
- Partner Prospect API — full endpoint reference
- Authentication & Environments — credentials, base URLs, and slugs
- Embedded purchase flow — iframe details
- Event Reference — every webhook payload