Stream events
Opens a server-sent events stream of every event on your account, in the order they happen. The response
is text/event-stream. Each event’s id is the event id and its data is the same Event object a
webhook would deliver. If the connection drops, reconnect with the Last-Event-ID header set to the last
id you saw, and O.J. replays what you missed, up to the same 30-day window as GET /events.
Use this for live user interfaces and for agents that are waiting on a deal. Webhooks remain the record. A stream is a convenience, not a substitute for a registered endpoint.
Authorizations
One client per partner per environment. Access tokens expire after 15 minutes. Scopes are granted per client. Sandbox clients use https://sandbox.api.meet-oj.com/oauth/token.
Headers
Resume after this event id.
Query Parameters
Only stream events of this type.
The kinds of events O.J. sends. The name is object.what_happened. The Webhooks section of the docs explains when each one fires.
referral.received, referral.matches_updated, referral.needs_partner, referral.needs_borrower, message.sent, message.received, referral.reminder_due, submission.awaiting_review, submission.decided, document_request.opened, document_request.satisfied, referral.submitted, offer.received, offer.accepted, referral.funded, referral.declined, referral.closed, payout.updated Response
An event stream
One id: line and one data: line per event, separated by a blank line.

