API Reference
Stream Watcher Changes
Opens a Server-Sent Events stream that delivers a watcher’s change events as
each scheduled poll detects them. Events include connected, change,
heartbeat, reconnect, stopped, and error.
Each poll interval, the stream checks the Durable Object for changes and emits events.
Tier: Business+
GET
Stream watcher changes (SSE)
Previous
Create WebhookRegister a URL to receive push notifications when listings change,
delivered within minutes of Borough detecting the change on its refresh
cycle. Returns a signing secret for payload verification.
Subscriptions are matched on event type only. An active subscription
receives every change of a subscribed type across the whole Borough
dataset — subscribing to `listing.created` means every new listing
Borough indexes, citywide. Narrow it either by filtering on
`data.listingId` in your handler, or by using Watchers
(`POST /v1/watchers`), which scope monitoring to one listing, one
building, or one saved search.
**Tier:** Business
Next
Stream watcher changes (SSE)