Skip to main content

Event Ingestion

This is Greenlight's preferred way to receive prospect data. You emit events from your own system in your own payload format, Greenlight subscribes to them, and Greenlight maintains the mapping into its data model.

The appeal is that nothing on the sending side is Greenlight-specific. If your platform already emits an event when a prospect is created, screened, or updated, you point that stream at Greenlight instead of writing a client for it. There is no property owner slug to thread through your code and no synchronous call in your critical path.

That covers getting data in. You will still write Greenlight-specific code elsewhere: an endpoint to receive Greenlight's outbound webhooks, and the front end that puts the renter into the enrollment flow and reacts to its outcome.

The tradeoff is that onboarding is collaborative rather than self-serve — Greenlight writes an adapter for your schema before events start landing. If you need to be integrated today without waiting on Greenlight, use the Partner Prospect API instead.

How it works​

  1. Something happens in your system — a prospect is created, screened, or updated.
  2. You emit an event to the destination Greenlight gives you during onboarding.
  3. Greenlight queues the event durably and processes it asynchronously.
  4. A normalizer written for your schema maps your fields onto Greenlight's prospect model.
  5. Greenlight resolves which property owner the prospect belongs to, then creates or updates the prospect.
  6. Once eligibility is decided, Greenlight emits prospect.ready back to you with the enrollment URL, or prospect.ineligible if the renter qualifies for nothing.

Steps 2 and 6 are the two integration points you build. Everything between them is Greenlight's.

Event envelope​

Every event uses the same wrapper. Only three keys are read; anything else you include is ignored.

{
"source": "acme",
"event_type": "ProspectUpdate",
"payload": {
"acme_prospect_id": "your-prospect-123",
"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"
}
}
KeyDescription
sourceYour partner code, assigned by Greenlight. Determines which normalizer runs.
event_typeThe event name from your system. Must be one Greenlight has registered for your source.
payloadYour event body, in your own field names

payload is deliberately unconstrained — the field names above are illustrative, not required. Greenlight's normalizer for your source is written against whatever you already emit.

An event whose source or event_type Greenlight does not recognize is logged and discarded without error. That means adding a new event type on your side is a no-op until Greenlight registers it, rather than a failure. An envelope that is not a JSON object or lacks source or event_type, or a registered event whose payload is not an object, is not discarded: Greenlight is alerted and the event is retried.

What your payload must carry​

Whatever your field names, the normalizer has to be able to extract three things. An event missing any of them is not dropped: Greenlight is alerted, and the event is retried and then set aside for Greenlight to investigate. A retry resends the same payload, so send a corrected event.

ConceptWhy it is required
Your prospect identifierBecomes source_prospect_id, the key Greenlight upserts on and echoes back in every webhook. Letters, digits, - and _ only, at most 128 characters; an event creating a prospect with any other identifier is not processed
The PMS property identifierHow Greenlight determines which property owner the prospect belongs to. For Yardi, the property code; see Sourcing fields from Yardi
An event timestampUsed for ordering, so late-arriving events cannot overwrite newer data

Beyond those three, the first event for a prospect must also carry a terms acceptance timestamp — when the renter accepted Greenlight's terms in your flow. Later events may omit it; Greenlight keeps the value it already holds. A first event without it is rejected and redelivered, and every redelivery fails the same way; send a new event that carries it. Establish where it comes from during onboarding.

Everything else is optional per-event. Fields your normalizer cannot find, and fields that are null, are left untouched rather than cleared, so partial events are safe to send. The Prospect Field Reference lists every value Greenlight can take from your events, what each one means, and which ones a prospect needs before it can be checked for eligibility.

If you offer Greenlight Guarantee, Greenlight's normalizer can map a boolean signal from your schema onto guarantor_coverage during onboarding. You keep your own field names.

Property resolution​

Greenlight looks up the property by its PMS integration code and takes the owner from there. This is why you never send a Greenlight property owner slug — the identifiers you already have are enough.

The consequence is that the property must exist in Greenlight, with a matching integration code, before your events arrive. Events for an unknown property are dropped silently. If prospects are not appearing, an unsynced or mismatched property code is the first thing to check with your Partner Success Manager.

Events identify the building by its integration code, which can also update a prospect you identified through the API with your own property and unit ids. When the event carries a pms_type, it is used as sent. When it doesn't, the prospect takes the type of the building that code matched:

  • A building on a PMS, such as Yardi: the prospect moves to those PMS codes.
  • A building you onboarded under your own ids: the prospect stays on your ids and takes the external_system_id you gave that building, and the one you gave the unit when pms_unit_id matches one of its units. If the code matches more than one such building, or one you never gave an id, the prospect keeps the id it had. A unit id kept from a different building no longer resolves, so send the unit when the building changes.
  • A building with no type Greenlight can match on: the prospect moves to untyped codes and cannot enroll until a later update types them.

Unlike the API, this switch is never refused, because the matched building tells Greenlight which namespace the code is in. When the prospect moves, any identifier the event doesn't carry is cleared, along with the building and unit it resolved to, so send pms_unit_id too.

A PMS integration code is only unique within a single property manager, so if your platform serves more than one, your payload must also carry your own identifier for the organization the event belongs to. Greenlight maps each of your organization identifiers to the property managers it covers during onboarding, and resolves the property within that boundary. Once your integration is onboarded this way, the identifier is required on every event: Greenlight drops an event that omits it, or that names an organization it has no mapping for, rather than falling back to the property code alone. Both cases raise an internal alert, so tell your Partner Success Manager when you add an organization on your side.

Ordering and replay​

Greenlight stores the timestamp of the last event applied to each prospect and ignores any event at or before it. This makes the integration forgiving in the ways distributed event streams tend to need:

  • Out-of-order delivery is safe. An update that overtakes an older one wins, and the straggler is discarded rather than reverting the record.
  • Replays are safe. Re-emitting history will not clobber newer data.
  • Duplicates are safe. A redelivered event has a timestamp equal to the one already applied, so it is treated as stale.

Emit your event timestamps from the moment the change occurred in your system, not the moment you emit. Stamping at emit time defeats the ordering guard for events that were queued or retried on your side.

Delivery and retries​

Events are queued durably on receipt, so a Greenlight deployment or a slow downstream does not lose them.

Processing an event either succeeds and removes it from the queue, or fails and leaves it queued for redelivery. Transient failures therefore resolve on their own without you re-emitting.

Note that the discarded cases above — unknown source, unknown event type, unresolvable property, unresolvable organization — are successes from the queue's perspective, and so are three more: a property outside the properties your grant covers, a property code that matches buildings under more than one property manager, and an event older than the last one applied. The event is consumed and not retried. These are visible to Greenlight in logs but produce no signal on your side, which is the main operational difference from the API, where the same problems surface as a 422 in your own request handler.

A malformed envelope, a payload missing your prospect identifier, property identifier, or event timestamp, and data that fails validation, such as a missing terms acceptance timestamp on a prospect's first event or a phone number that is not 10 digits once punctuation and a leading 1 are removed, behave the opposite way: the event stays queued and is retried, since a redelivery is indistinguishable from a transient failure. Neither failure mode is visible to you directly, which is why the outbound prospect.created event is worth watching during onboarding — it is your confirmation that an event actually landed.

What you get back​

There is no response to an event. The prospect's state reaches you through Greenlight's outbound webhooks, which behave identically no matter how the prospect was ingested:

EventMeaning
prospect.createdGreenlight accepted your first event for this prospect
prospect.incompleteGreenlight needs more data before it can check eligibility
prospect.readyGreenlight finished processing the prospect and it can enroll; enrollment_url is populated
prospect.ineligibleGreenlight finished processing the prospect and it qualifies for nothing; the *_ineligibility_reasons fields say why
prospect.errorGreenlight could not finish processing the prospect; error_reason says why

Subscribe to prospect.ready, prospect.ineligible and prospect.error at minimum — together they tell you how every prospect ends. prospect.ready is how the enrollment URL reaches you.

Because ingestion is asynchronous and one-way, this is the only way to observe the result. If you need a prospect's current state on demand, GET it from the Partner Prospect API — reading is available even if you never write through it.

Filling in missing data​

A prospect stays incomplete until it has every completeness field in the Prospect Field Reference. If your events do not carry all of it, you have three options:

  • Emit more. Send a follow-up event when screening results or lease terms are finalized. Greenlight applies it to the same prospect.
  • Let the renter supply it. The enrollment flow collects some of it during the application. This only helps once the prospect is complete enough for Greenlight to produce an enrollment URL at all.
  • Use the API for the remainder. The two paths write to the same record, keyed on the same (source, source_prospect_id). Sending the bulk over webhooks and patching specifics over the API is a legitimate combination.

Watch for prospect.incomplete to know you are in this state. It is sent when a prospect is created without every required value, and again whenever a complete prospect loses one. Its missing_fields names what is still needed, using the Partner API field names in the Prospect Field Reference, not your event's own keys.

Onboarding​

Greenlight needs the following from you before events can be processed:

  1. A sample of each event you intend to send, with realistic values
  2. The event_type values to register for your source
  3. Which field carries your prospect ID, property ID, and event timestamp
  4. Your webhook endpoint for Greenlight's outbound events, so you can receive prospect.ready

Greenlight then assigns your source code, writes the normalizer, registers your event types, and gives you the destination and credentials to emit to. Changes to your payload shape after go-live need a corresponding normalizer change, so tell your Partner Success Manager before you ship one.

Next steps​