Everything the platform does — and how to automate it.
The complete reference for the SurplusLedger feed: the lead object and the lien and document evidence behind every figure, the dashboard you work leads in, and the REST API, signed webhooks, and email alerts that drop verified matches straight into the tools you already run. We're the data provider — you verify and act.
On this page
One data core, three co-equal surfaces.
SurplusLedger is a data provider. We publish public-record-derived foreclosure-surplus leads — a computed surplus figure with the full lien stack and the recorded documents behind it — and you decide what to do with them. There is one data-and-event core, rendered three ways. Every lead and every change is the same object whichever surface you use:
- Dashboard — browse, filter, open the evidence, export, and keep a private workspace (track / note / dismiss). For working leads by hand.
- REST API — a self-serve key pulls the same leads and their full evidence into your own stack.
- Push-to-CRM webhooks — new matches and changes to leads you track are pushed to your destinations (GoHighLevel, Zapier, Make, or a raw endpoint) as signed events.
money_status field and the lien stack always tell you which you're holding.The lead object.
Every surface returns the same lead. The feed (GET /api/v1/leads) returns the list shape below — no lien array. The detail endpoint (GET /api/v1/leads/{id}) adds the evidence: the lien stack, documents, owner profile, legal profile, identifiers, research links and provenance.
{
"id": "a1b2c3d4-5e6f-7890-abcd-ef1234567890",
"reference": "AZ-trustee-TS2345678",
"state": "AZ", "county": "Maricopa", "sale_type": "trustee",
"property_address": "123 Example Rd, Peoria AZ 85383",
"apn": "200-12-345",
"owner_name": "Jane Q. Homeowner", "owner_status": "resolved", "owner_name_partial": false,
"surplus_estimate": 118400,
"surplus_basis": "ceiling", // "ceiling" | "net"
"money_status": "gross-ceiling", // how far the figure is verified
"amount_reason": null, "review_note": null,
"sale_date": "2026-10-28", "sale_price": 352000, "foreclosing_basis": 233600,
"surplus_status": "unclaimed",
"deadline_kind": "hold", "days_left": null, "forfeit_date": null,
"freshness_at": "2026-11-09T14:00:00.000Z",
// detail-only, from GET /api/v1/leads/{id}:
"liens": [
{ "holder": "Sunrise Ridge HOA", "role": "HOA assessment lien",
"position": 2, "amount": 9850, "affects_surplus": true,
"reason": "Recorded after the foreclosing loan", "source_doc_url": "https://…" }
],
"owner_profile": { "deceased": false, "co_borrowers": ["John Homeowner"],
"marital_status": "married", "personal_representative": null,
"recipient_parties": [{ "role": "Heir", "name": "John Homeowner Jr" }],
"foreclosing_lender": "Example Bank NA", "trustee": "Example Trustee Co", "…": "…" },
"legal": { "statute": "A.R.S. § 33-812", "claim_deadline": "…", "advisory": null,
"redemption": "…", "disclaimer": "Rules reviewed Oct 8 2026 — not legal advice." },
"documents": [ { "name": "Trustee's Deed", "kind": "lookup",
"download_url": "/api/v1/leads/a1b2…/documents/0", "cached": { "…": "…" } } ],
"identifiers": [ { "label": "Parcel / APN", "value": "200-12-345", "copyable": true } ],
"research_key": "Start at the address — look it up at the Maricopa County assessor…",
"research_links": [ { "label": "Pull the documents — Maricopa County Recorder", "url": "https://…" } ],
"provenance": "Source: county records. The amount is a gross ceiling from public foreclosure notices…"
}Fields
| Field | Type | Meaning |
|---|---|---|
id | uuid | Stable lead id. Use it to de-duplicate and to re-fetch. |
reference | string | A human label like AZ-trustee-TS2345678. Not a join key. |
state / county | string | Two-letter state and county name. |
sale_type | enum | trustee · judicial · tax. |
property_address | string | null | Street address when on record. Never required — a lead ships without one. |
apn | string | null | Parcel / APN when we hold one — the locator a finder pulls records with. |
owner_name | string | null | Former owner when matched; null when unresolved (the lead still ships). |
owner_status | enum | resolved · owner-unresolved. |
owner_name_partial | boolean | True when owner_name is only a SURNAME (some trustee lists publish just the surname). Confirm the full identity at the recorder; the backend upgrades it when a fuller NOS/deed read arrives. |
surplus_estimate | number | null | The figure. null while an amount is pending (held for verification). |
surplus_basis | enum | ceiling (a gross upper bound) or net (verified of the lien stack). |
money_status | enum | amount-pending · gross-ceiling · recorder-verified-net — how far the figure is verified. |
amount_reason / review_note | string | null | Plain-English note when a figure is held or still being confirmed. |
sale_date / sale_price / foreclosing_basis | date / number | The sale inputs behind a gross ceiling (price − debt). |
surplus_status | enum | null | Sale/surplus lifecycle from the public record: provisional (not yet final) · final · voided (redeemed / set aside). |
redemption_pending / redemption_lapse_date | boolean / date | null | Judicial/sheriff: the sale (and surplus) isn't final while redemption is open; lapse_date is when it closes. |
claim_status | string | null | Public court-docket status when a claim may be in motion (e.g. claim_filed, finder_contested, owner_disbursed). Null when nothing recorded — never reflects other buyers' activity. |
owner_match_confidence | string | null | How the recorded deed was joined to this sale when an authoritative figure carried an uncertain owner-name match. Null when nothing to flag. |
images_fee | boolean | True when the county recorder indexes for free but charges a per-image fee — use it to explain an empty / roster-only documents[] ('we hold no copy — the county paywalls the image'). |
gross_excess / county_fee | number | null | Tax sales only: the county's gross excess before its statutory claim fee, and the fee itself (claimable = gross − fee). |
deadline_kind / days_left / forfeit_date | enum / number / date | A forfeiture clock where unclaimed surplus escheats to a non-owner (e.g. NV tax); otherwise a hold. |
freshness_at | timestamp | When we last refreshed this lead. Use it with updated_since. |
liens[] | array | Detail only. The lien stack — see below. |
owner_profile | object | null | Detail only. Co-owners/spouse (co_borrowers), estate rep, marital status, entity, foreclosing lender/trustee, and recipient_parties — the parties served the foreclosure notice (heirs/successors/junior lienholders who may also claim). Public-record facts, never inferred. (CSV export flattens these into co_claimants / notice_recipients columns.) |
legal | object | Detail only. Statute, claim deadline, redemption, escheat, any advisory, and the review date. |
documents[] | array | Detail only. Recorded-document evidence — see Documents. |
identifiers[] / research_key / research_links[] | array / string | Detail only. Every locator we hold, plus where and how to verify at the county. |
provenance | string | Detail only. Plain-English source + what the figure is. |
A figure that might be wrong is suppressed on its own (the number is nulled with an amount_reason, or flagged with a review_note) while the lead still ships. A figure that's merely incomplete — a missing owner or address — never withholds the lead. The three enum vocabularies — money_status, owner_status, sale_type — are in the endpoint reference.
Documents & evidence.
Each entry in a lead's documents[] array is one recorded-document reference — the "show your work" behind the figure. Some open the record directly; some are a verify-at-the-county instruction. Where we hold our own archived copy, you also get the document's text, a preview, and a durable download link.
| Field | Meaning |
|---|---|
name | Plain-English label, e.g. “Notice of Sale”, “Trustee's Deed”. |
kind | document — url opens the specific record. lookup — url (if any) lands on a record-scoped portal search; use hint to find the row. |
url | A safe link to the single record or a record-scoped search, or null. Never a browseable roster. |
hint | For lookup entries: the exact key to search / how to verify at the county. |
roster | true when the source is a browseable list — then url is null by design (we expose single-record verifiability, never the roster). |
cached | Present when we hold our own copy: { pdf_url, thumb_url, text_excerpt, doc_type }. pdf_url / thumb_url are short-lived signed URLs (~1 hour) — fine to open now, but they rot if you store them. |
download_url | A durable link (relative to your API base) to our archived copy, e.g. /api/v1/leads/{id}/documents/0. Store this, not cached.pdf_url — it re-signs on every request and never expires. null when we hold no copy. |
download_url (GET /api/v1/leads/{id}/documents/{idx}), prefixed with your API host (it's relative). It 302-redirects to a freshly-signed file URL on every request, so re-calling it always works — unlike cached.pdf_url, which expires in about an hour. One subtlety: store the endpoint and re-request it; don't follow the redirect once and save where it points — that target is itself a ~1h signed URL and will rot. It isn't metered (a redirect, not a 200), so re-resolving is quota-free.download_url is an authenticated endpoint behind your API key — durable, but not a public link: to show a document to someone without a SurplusLedger key (a client, a teammate outside your tools), fetch it from your own backend with your key and stream or re-host the file. When you instead need a no-login link that's good for the next hour — render it inline now, or hand it to a client briefly — that's exactly what cached.pdf_url is for. Only our own captured copies are downloadable at all; for a lookup or roster reference download_url is null, so fall back to url / hint and verify at the county.The feed & filters.
The feed is a filtered, sorted, paginated table of leads. Columns: Owner (or a parcel hint when the owner is unresolved), Location, Type, Surplus (amount + basis label), Confidence (the money_status badge), Updated, and Deadline. Click any row to open the evidence drawer.
Filter vocabulary
Every filter is also an API query parameter on GET /api/v1/leads, so the dashboard and the API filter identically. Multi-value parameters are comma-separated; unknown enum values are ignored; a filter only ever narrows within the states your plan covers.
| Param | Example | Meaning |
|---|---|---|
state | state=OR,NV | Two-letter states (case-insensitive) |
county | county=OR:Lane,NV:Clark | STATE:County pairs. County names repeat across states, so always qualify them; the county part is case-insensitive. |
sale_type | sale_type=trustee,tax | Sale types |
min_surplus | min_surplus=25000 | surplus_estimate ≥ N (a lead with no estimate is excluded) |
money_status | money_status=recorder-verified-net | Money status |
owner_status | owner_status=resolved | Owner status |
deadline_window | deadline_window=90 | Only forfeiture leads due within N days |
new_within | new_within=7 | Only leads freshened within the last N days |
q | q=Smith | Free text over owner, address, parcel, court case # and trustee sale # |
sort | sort=surplus | Sort order. Missing or unknown → priority. |
limit | limit=100 | Page size, 1–100 (default 50; out-of-range values are clamped) |
cursor | cursor=eyJz… | The previous page's next_cursor (contract) |
updated_since | updated_since=2026-11-10T00:00:00Z | Incremental sync: only leads changed after this instant. ISO-8601 **with a zone**, otherwise 400 invalid_updated_since. |
Sort
The default priority sort leads with the largest surplus but gives money about to forfeit a bounded lift so deadlines aren't buried. Use surplus for a pure dollar sort.
| Value | Order (ties → id ascending) |
|---|---|
priority | Default. Surplus with a bounded lift for money forfeiting within 30/60/90 days, highest first. |
surplus | surplus_estimate, highest first. No estimate counts as lowest. |
sale_date | Newest sale first; no date last |
newest | Most recently freshened first; never-freshened last |
deadline | Soonest forfeiture first (no deadline last), then highest surplus |
The stat bar, saving a search, and paging
- The stat bar shows the total, the verified-net count, and the new-this-week count. The totals are computed over the whole filtered set, not just the page — and in the API they're returned in
meta. - Save search stores the current filters as a saved search you can follow and get alerts from. See Saved searches.
- Export these downloads the selected rows as one CSV — the collection form of the per-lead export. It's pull-only; there is no export webhook.
- The dashboard pages with infinite scroll; the API uses a cursor — see Pagination.
The evidence drawer.
Clicking a lead opens a pull-out with the full evidence — the same object the detail endpoint returns, laid out for a human.
- How the money works — a waterfall. For a foreclosure: winning bid at sale − foreclosing loan (cleared first) = gross surplus ceiling. For a tax deed: excess proceeds − any county claim fee = claimable to you. A number we don't have reads not in online records.
- Lien stack — each lien card shows its position, role, amount and holder, and whether it Reduces the surplus or Doesn't reduce the surplus. Surplus-reducing liens are flagged. Each links to the single recorded instrument, or to a verify-at-the-recorder instruction — never a roster.
- Documents ("Source & verification") — an archived copy can be viewed inline, opened in a new tab via its durable link (re-signs each request so bookmarks don't rot), and read as text; otherwise you get the verify-at-the-county instruction.
- Property & identifiers, Owner & parties, Claim rules (statute, claim deadline, finder-fee cap, redemption, escheat, any advisory, review date), Research & claim portals, and the provenance line with a standalone Not legal advice.
Workspace actions
These are your private, per-account workspace — they never change what anyone else sees or whether a lead is sellable. Each maps to an API verb and (except Export) a webhook event.
| Action | API | Webhook |
|---|---|---|
| Track / untrack | PATCH /leads/{id}/state { tracked } | lead.tracked / lead.untracked |
| Note | PATCH /leads/{id}/state { note } | lead.noted |
| Dismiss | PATCH /leads/{id}/state { dismissed } | lead.dismissed |
| Mark seen | PATCH /leads/{id}/state { seen: true } | — (no event) |
| Export (CSV / JSON / HTML) | GET /leads/{id}/export | — pull-only, no event |
| Push to CRM | POST /leads/{id}/push | lead.pushed |
| Copy summary | — (dashboard only) | — |
Tracking a lead is what makes it send you lead.changed events when its figure, liens, documents or deadline move. Push hands off the lead's data to your destinations — it never contacts the owner.
Saved searches & in-app alerts.
A saved search is a stored set of feed filters. Your feed is always current on its own; a saved search just notifies you when a new lead enters your feed and matches it. Each has a cadence and channels:
| Cadence | Alerts |
|---|---|
off | none |
instant | every 15 minutes |
daily | 07:00 America/Los_Angeles |
weekly | Mondays 07:00 America/Los_Angeles |
| Channel | |
|---|---|
email | a digest email |
in_app | reserved (no delivery yet) |
webhook | a saved_search.matched event per lead to your Push destinations |
- Push new matches to your integrations adds the
webhookchannel — each new match fires asaved_search.matchedevent to your destinations. - Include full lead detail (
webhook_full_detail) makes that event carry the full lien stack + documents instead of the light feed row — so a match arrives with its evidence and no call-back. Enable it per-search, for the high-value searches you act on.
The in-app Alerts inbox groups events into New (unseen) and Earlier (seen, grouped by day); opening it marks everything seen, and each row is individually dismissible. It covers both new saved-search matches and changes to leads you track — always on, free, and near-instant (a detector runs about every two minutes).
Email alerts.
There are two email digests, both plain-English and both unsubscribable one-click:
- Saved-search matches — on the search's cadence (instant 15 min / daily 7am Pacific / weekly Mondays 7am Pacific), one email per run listing the new leads for that search ("N new leads for ‘Maricopa ≥ $50k’").
- Tracked-lead changes — opt-in, a daily digest at 7:15am Pacific. One email lists every tracked lead that changed, each line in plain English: "Est. surplus $42,000 → $51,000", "Parcel number added", "New lien recorded: HOA $1,200", "Lien released: mortgage $80,000", "New document recorded: Trustee's Deed", "Claim deadline: — → 2027-03-01".
The daily email is deliberately separate from the near-instant webhook and in-app channels — webhooks and in-app Alerts don't depend on the email setting and arrive near-instantly either way. The emails stay strictly data-side: they never carry the owner name or street address, and figures are labeled public-record-derived, not legal advice.
REST API.
The v1 API is JSON in and out and is for your servers — an API key is a secret, never put it in front-end or mobile code. Base URL is your SurplusLedger app host; every path starts with /api/v1.
Authentication
Create a key in Settings → API keys and send it as a bearer token on every request. A key acts as your account and only returns leads for the states your plan covers — a lead outside your plan reads as 404, exactly like one that doesn't exist. A missing, malformed or revoked key is 401.
Keys can be minted read-only (pass role: "read_only"when creating one, or pick it in Settings): they pull data and documents but can't write — a write with a read-only key returns 403 role_forbidden. Hand a read-only key to a downstream service, a partner, or an analyst that should never track, push, or edit searches. On Firm, keys are unlimited.
# pull the trustee feed for Arizona curl "https://app.surplusledger.com/api/v1/leads?state=AZ&sale_type=trustee&min_surplus=25000" \ -H "Authorization: Bearer sl_live_0123456789abcdef0123456789abcdef01234567"
const res = await fetch(
"https://app.surplusledger.com/api/v1/leads?state=AZ&sale_type=trustee&min_surplus=25000",
{ headers: { Authorization: `Bearer ${process.env.SL_KEY}` } },
);
if (!res.ok) throw new Error((await res.json()).error); // branch on error, never the message
const { data, next_cursor, meta } = await res.json();import os, requests
r = requests.get(
"https://app.surplusledger.com/api/v1/leads",
params={"state": "AZ", "sale_type": "trustee", "min_surplus": 25000},
headers={"Authorization": f"Bearer {os.environ['SL_KEY']}"},
timeout=30,
)
r.raise_for_status()
body = r.json() # body["data"], body["next_cursor"], body["meta"]Response envelope
Success is { "data": … }. The feed adds next_cursor and a meta block (total, total_surplus, new_this_week, the states and counties your plan covers, and as_of — server time, which you keep for incremental sync). Errors are { "error": "<code>", "message": "…" } — branch on error, never the message.
Pagination — the cursor contract
- Request the first page with no
cursor. - If
next_cursoris non-null, request again withcursor=<next_cursor>, keeping the samesortand filters. Stop when it comes backnull. - Don't parse or build cursors — a cursor that doesn't decode, or one issued for a different sort, is
400 invalid_cursor; start again without one.
Incremental sync with updated_since
Crawl once to backfill and keep meta.as_of. Later, crawl with updated_since=<last as_of minus ~5 minutes> and upsert by id; the overlap covers clock skew, so dedupe on id. It returns only leads whose data actually changed.
updated_since never returns it, so a naive sync would keep it forever. Stay accurate by re-fetching by id before you act on a lead (GET /api/v1/leads/{id} returns 404 once it's gone) and/or a periodic full resync (a crawl with no updated_since), dropping any ids you didn't see.Durable document links
GET /api/v1/leads/{id}/documents/{idx} 302-redirects to a freshly-signed file URL for one archived document ({idx} is the 0-based index into documents[]). Store this link, not the ~1h cached.pdf_url. Because it returns a redirect, it isn't counted against your monthly quota.
Quotas, rate limits & headers
Each plan includes a monthly read quota; only successful API-key reads on metered endpoints count (dashboard use never does). Over quota is 429 quota_exceeded with resets_at and Retry-After. There's also a per-minute burst cap (300 reads / 60 writes per key) — over it is 429 rate_limited. Pace yourself with the headers rather than finding the limit by hitting it:
Monthly read quota by plan: Single-State 2,500 · All-Access 25,000 · Firm 250,000 (Firm also gets unlimited keys & saved searches). Call GET /api/v1/usage any time for your live quota window, per-key read counts, and (Firm) seat summary — it isn't metered.
| Header | On | Meaning |
|---|---|---|
X-Quota-Limit | every endpoint, when your plan has a quota | Metered calls allowed in this monthly window |
X-Quota-Remaining | same | Metered calls left in this window, after this call (0 on a quota_exceeded 429) |
X-Quota-Reset | same | When the window resets (Unix seconds); same instant as resets_at |
X-RateLimit-Limit | write + read endpoints | Calls allowed per minute for this key (60 on writes, 300 on reads) |
X-RateLimit-Remaining | write + read endpoints | Calls left in the current minute for that limiter |
X-RateLimit-Reset | write + read endpoints | When the current minute's window ends (Unix seconds) |
Retry-After | 429 only | Seconds to wait: until the quota resets (quota_exceeded) or the next minute (rate_limited) |
CORS — server-to-server only
We never send Access-Control-Allow-* headers, and every OPTIONS preflight to /api/v1/* is refused before auth, so a browser on another origin can't read v1 responses. For a browser UI, call your own backend and have it call us with the key.
Webhooks.
Point a Push destination (Settings → Integrations) at your CRM, Zapier, Make, or a raw endpoint, and every event lands as a signed POST. Every event goes to every active destination; filter on the event field in your receiver. The envelope is always { "event", "at", … }.
Events & triggers
| Event | Sent when | Carries |
|---|---|---|
lead.tracked / lead.untracked | You Track / untrack a lead | Full detail + your state |
lead.noted | A lead's private note changes or is cleared | Full detail + your state |
lead.dismissed | You dismiss a lead | Full detail + your state |
lead.pushed | You press Push to CRM / call the push endpoint | Full detail + my_note |
saved_search.matched | A new lead enters your feed and matches a saved search (webhook channel on) | Light feed row (full detail opt-in) |
lead.changed | A lead you track changes in a way that matters | Light feed row + changes[] (full detail opt-in) |
test | You press Send test on a destination | No lead data |
Workspace events (Track / Note / Dismiss / Push) carry the full GET /api/v1/leads/{id} object, including documents[]. The two feed-level events — saved_search.matched and lead.changed — carry the light feed row by default, so fetch the detail for evidence unless you opt into full detail (below).
lead.changed — what counts
A detector runs about every two minutes, compares each tracked lead to your last alert, and sends the net change. The changes[] array is typed: a numeric move fires only at ≥ $500 or 2%; sub-floor drift accumulates.
surplus_estimate,money_status,sale_date,deadline_kind,forfeit_date,surplus_status— each{ old, new }.liens—{ added[], changed[], released[], repositioned[] }, each lien keyed by a stable naturalkey.enrichment—{ gained: ("owner"|"parcel"|"address")[] }when a locator you were missing is filled in (first-time presence only).documents—{ added: [{ key, label }] }when a recorded document is captured for the first time, most valuably the post-sale deed (labele.g. Trustee's Deed). First-seen only.visibility—{ old, new }asin_feed↔withdrawnwhen the lead leaves or re-enters the feed.
Full-detail opt-ins
There are two, and they're independent — both upgrade a feed-level event to the full detail object (lien stack + documents with durable links + owner/legal/provenance), evidence in hand with no call-back:
- Per saved search —
webhook_full_detail: trueon the saved search upgrades itssaved_search.matchedevents. Webhook channel only; email and in-app are unchanged. - Account-level — "Include full lead detail in
lead.changedwebhooks" inSettings → Integrationsupgrades every tracked-lead change (they aren't tied to a saved search). When a lead is withdrawn,leadisnullandchangesholds only thevisibilityentry.
Signing & verification
Every delivery is signed. Each destination has a whsec_ secret (shown once; Reveal secret later). The signature is a hex HMAC-SHA256 of {timestamp}.{raw body}. Verify before parsing, using the raw bytes, and reject a timestamp more than 5 minutes old.
| Header | Value |
|---|---|
X-SL-Timestamp | Time of sending, Unix seconds |
X-SL-Signature | Lowercase hex HMAC-SHA256 of the signed string, keyed with your full secret |
import crypto from "node:crypto";
// rawBody: a Buffer of the exact request body, e.g. express.raw({ type: "application/json" })
export function verifySurplusLedger(rawBody, headers, secret) {
const ts = headers["x-sl-timestamp"];
const sig = headers["x-sl-signature"];
if (!ts || !sig || !/^\d+$/.test(ts)) return false;
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // 5-minute replay window
const expected = crypto.createHmac("sha256", secret).update(`${ts}.`).update(rawBody).digest();
const given = Buffer.from(sig, "hex");
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}import hashlib, hmac, time
def verify_surplusledger(raw_body: bytes, headers, secret: str) -> bool:
ts = headers.get("X-SL-Timestamp")
sig = headers.get("X-SL-Signature")
if not ts or not sig or not ts.isdigit():
return False
if abs(time.time() - int(ts)) > 300: # 5-minute replay window
return False
expected = hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, sig)Rolling a secret replaces it immediately with no overlap — update your receiver right after. Deliveries signed with the old secret in that gap will fail verification; reconcile them via the API.
Delivery, retry & dedup
- Each attempt has a 5-second timeout. The Track / Note / Dismiss workspace events get up to 2 retries on transient failures (network / timeout / 5xx); a 4xx, a redirect, or a refused destination is never retried. Each retry is re-signed with a fresh timestamp.
lead.pushed,saved_search.matchedandlead.changedget one attempt each — best-effort, no queue, with a per-run time budget. Treat the stream as lossy.- Deduplicate on
event+ the lead's id +at. Events can arrive out of order or more than once. Answer any 2xx; redirects and other statuses count as failures. - If your plan no longer covers a lead by the time it's delivered, the event is dropped. Suspended / closed accounts receive nothing.
Pull it instead — GET /api/v1/alerts
The same tracked-lead change events are a pull API — the counterpart to lead.changed, for polling or backfill when a webhook was missed. Each item carries kinds (a routing shortcut over the changes[] field names), the typed changes[], and a compact lead snapshot. Poll forward with since=<last at>; page older with the keyset cursor for exhaustive backfill. It's a metered read.
# everything newer than my last-seen event curl "https://app.surplusledger.com/api/v1/alerts?since=2026-11-17T15:15:04.000Z&limit=200" \ -H "Authorization: Bearer sl_live_…"
Integration recipes.
A typical CRM setup, end to end
- Add a webhook destination in
Settings → Integrationsand store itswhsec_signing secret. Send atestevent and confirm your receiver verifies the signature. - Opt a high-value saved search into webhook + full detail. Create the search with your filters,
cadenceset (e.g.instant), thewebhookchannel on, andwebhook_full_detail: true. - Receive
saved_search.matchedfor each new match — with full detail, it already carries the lien stack anddocuments[]. Verify the signature, dedupe onsaved_search.id + lead.id + at, and create the record in your CRM. - Store the
download_urls (prefixed with your API host), nevercached.pdf_url— the durable link re-signs on every open. - Track the lead you decide to work —
PATCH /leads/{id}/state { tracked: true }— so it starts sendinglead.changed. - Receive
lead.changedwhen the figure, liens, deadline or a new deed lands (turn on account-level full detail to get the evidence inline). Apply the typedchanges[]to your record. - Reconcile on a schedule with
GET /api/v1/alerts?since=…(catch any missedlead.changed) and re-fetch any lead by id before you act, to catch withdrawals.
When to call which endpoint — and why
| You want to… | Use | Why |
|---|---|---|
| Backfill everything once | Crawl GET /leads with the cursor | The full current feed; keep meta.as_of for the next step. |
| Stay current efficiently | GET /leads?updated_since=… on a schedule | Only leads that actually changed — cheap. Dedupe on id. |
| Get new matches the moment they appear | saved_search.matched webhook | Push, no polling. Opt into full detail to skip the call-back. |
| React to a tracked lead moving | lead.changed webhook + GET /alerts to reconcile | Near-instant push; the pull API backfills anything missed. |
| Get the full evidence for one lead | GET /leads/{id} | Only when a feed-level event didn't carry the lien stack / documents you need. |
| Catch withdrawals / removals | Re-fetch by id · periodic full resync | updated_since never reports a removal — a 404 on re-fetch is your signal. |
| Download a document later | Store download_url, open GET /leads/{id}/documents/{idx} | Durable (re-signs); not metered. cached.pdf_url rots in ~1h. |
id, dedupe on the id + at key), treat the webhook as the fast path, and let a scheduled GET /api/v1/alerts + updated_since crawl be the source of truth. Over quota, metered reads return 429 — but webhooks and pushes are never metered, so your push stream keeps flowing.Teams, history & Firm.
Firm / Pro is the tier for an organization rather than one operator: everything in All-Access plus a team, the full history, and licensing. All of it is self-serve — subscribe from Coverage and manage it in the dashboard.
Team seats & roles
A Firm plan includes 3 seats (then $99/mo per added seat). Invite teammates in Settings → Team; everyone shares the same leads, saved searches, and tracked workspace. Roles gate actions, never data visibility: admin runs billing, seats and keys; agent works the shared searches, notes, and pushes; read-only can view and export but not change anything. Read-only seats map to read-only API keys — the same idea for a service or partner.
Historical & outcomes — GET /api/v1/outcomes
The live feed only shows leads that are currently sellable. The Firm-only /outcomes endpoint serves the full retained corpus — including the closed, disbursed, and withdrawn leads the feed drops — each with an availability object (available / resolved / pending / below_threshold). It's also how you reconcile removals: a lead that left the feed still appears here (with updated_at bumped), which GET /api/v1/leads?updated_since=… structurally can't report. Filter by state / sale_type / updated_since; keyset-paginate with cursor (up to 500/page). A non-Firm key gets 403 firm_required.
# reconcile what changed (incl. removals) since your last sync curl "https://app.surplusledger.com/api/v1/outcomes?updated_since=2026-11-10T00:00:00Z" \ -H "Authorization: Bearer $SL_KEY"
Usage & reporting — GET /api/v1/usage
Your live quota window (limit / used / remaining / resets_at), a per-key read breakdown for the current period, and (Firm) the seat summary. It isn't metered, so you can poll it freely to pace jobs or build a usage dashboard.
Settings → Team.Endpoint reference.
Every endpoint, generated from the API source so it can't drift. {id} is always a UUID; anything else is 400 invalid_id.
| Endpoint | What it does | Metered |
|---|---|---|
GET /api/v1/leads | The feed: a filtered, sorted, paginated list of leads (no lien array) plus headline totals | yes |
GET /api/v1/leads/{id} | One lead with its full evidence: lien stack, legal profile, documents, provenance | yes |
GET /api/v1/leads/{id}/export | One lead as a file (format=csv|json|html). Stamps your exported_at. | yes |
GET /api/v1/leads/{id}/documents/{idx} | A durable download link for one recorded document — 302-redirects to a freshly-signed file URL (store this, not the ~1h cached.pdf_url) | no |
GET /api/v1/leads/export | Bulk export: several leads as one file (ids=<comma-separated UUIDs>&format=csv|json). Stamps each included lead's exported_at. | yes |
GET /api/v1/leads/{id}/state | Your Workspace state for one lead | yes |
PATCH /api/v1/leads/{id}/state | Track / dismiss / note / mark seen | only if it fires an event |
POST /api/v1/leads/{id}/push | Send the lead's data to your Push destinations (webhooks) | yes |
GET /api/v1/saved-searches | Your saved searches | yes |
POST /api/v1/saved-searches | Create a saved search | no |
PATCH /api/v1/saved-searches/{id} | Rename it or change its alert schedule/channels | no |
DELETE /api/v1/saved-searches/{id} | Delete it | no |
GET /api/v1/alerts | Your tracked-lead change events — the pull counterpart to the lead.changed webhook. limit (1–200), since (ISO created_at, strictly after — a forward poll floor), unseen (true), cursor (opaque keyset — pass each response's next_cursor to page older, until it comes back null; an unparseable cursor → 400 invalid_cursor). Dismissed events are never returned. | yes |
GET /api/v1/outcomes | **Firm plan only.** The historical / outcomes corpus: retained leads across the full lifecycle — including the closed / disbursed / withdrawn ones the live feed drops — each with an availability. Poll updated_since to reconcile removals without a full resync. | yes |
GET /api/v1/usage | Your API usage + plan state: the quota window (limit / used / remaining / resets_at), a per-key read breakdown for the current period, and (Firm) the seat summary. Not metered. | no |
GET /api/account/keys | List API keys (dashboard session only) | no |
POST /api/account/keys | Create an API key (dashboard session only) | no |
DELETE /api/account/keys/{id} | Revoke an API key (dashboard session only) | no |
Enums
| Value | |
|---|---|
trustee | Non-judicial trustee sale |
judicial | Judicial / sheriff sale |
tax | Tax sale |
| Value | |
|---|---|
resolved | An owner name is on record |
owner-unresolved | No usable owner name yet. The lead is still published, and the locators (parcel, case #, address) are there for your own research. |
| Value | The figure is… |
|---|---|
amount-pending | Not yet known (under review) |
gross-ceiling | An upper bound: sale price minus the foreclosing debt, before junior liens |
recorder-verified-net | Net of the recorded lien stack we verified (the evidence is in the detail) |
| Format | Response |
|---|---|
csv | text/csv, one header row plus one data row (locators, money-waterfall inputs, statuses, lien_count), as an attachment |
json | The detail shape { "data": … } as an attachment |
html | A per-subscriber watermarked Evidence Report (API-only) |
Workspace state & saved-search bodies
| Field | Type | Effect |
|---|---|---|
tracked | boolean | Add to or remove from your tracked list (fires lead.tracked / lead.untracked) |
dismissed | boolean | Hide from your feed (lead.dismissed on true) |
note | string | null | Your note, ≤ 4000 chars (longer is truncated). "" or null clears it (lead.noted). |
seen | true | Stamp seen_at = now (no event) |
| Field | On | Meaning |
|---|---|---|
name | POST, PATCH | ≤ 120 chars (default "Saved search") |
filter | POST only | An object of saved-filter keys. Unknown keys → 400 invalid_filter; over 4 KB → 400 filter_too_large. Not changeable after creation. |
cadence | POST, PATCH | Alert schedule (below). Default off: alerts are opt-in. |
channels | POST, PATCH | Alert channels (below). Default ["email","in_app"]. Unknown values are dropped. |
webhook_full_detail | POST, PATCH | When true, this search's saved_search.matched webhook carries the **full lead detail** (lien stack + documents + evidence — the GET /api/v1/leads/{id} shape) instead of the light feed row. Default false. Only affects the webhook channel. |
| Key | Query-param equivalent |
|---|---|
states | state (array) |
counties | county (array of STATE:County) |
sale_types | sale_type (array) |
min_surplus | min_surplus |
money_statuses | money_status (array) |
owner_statuses | owner_status (array) |
deadline_window | deadline_window |
new_within_days | new_within |
q | q |
sort | sort |
Errors & limits.
Branch on the error code, never the message. A 500 never carries internal text — retry with backoff.
| Code | HTTP | Where | Meaning / what to do |
|---|---|---|---|
unauthorized | 401 | all | Missing, invalid or revoked API key, or no session |
invalid_id | 400 | {id} routes | The id isn't a UUID |
invalid_cursor | 400 | GET /leads | The cursor doesn't decode, or was issued for a different sort. Restart without cursor. |
invalid_updated_since | 400 | GET /leads | updated_since isn't ISO-8601 with a time zone |
bad_request | 400 | state PATCH, saved searches | The body isn't a JSON object |
invalid_filter | 400 | POST /saved-searches | The filter has unsupported keys (the message lists the supported ones) |
filter_too_large | 400 | POST /saved-searches | The filter is over 4 KB |
no_changes | 400 | PATCH /saved-searches/{id} | Nothing writable in the body |
saved_search_limit | 403 | POST /saved-searches | Your plan's saved-search cap is reached |
key_limit | 403 | POST /api/account/keys | Your plan's active-key cap is reached, or you have no plan |
account_suspended | 403 | all authenticated routes | Your account is under review and access is paused (suspended or closed). Email support@surplusledger.com. |
role_forbidden | 403 | write routes | A read-only key or seat tried to write (PATCH /leads/{id}/state, POST /leads/{id}/push, POST/PATCH/DELETE /saved-searches). Use a key with write (agent) access. |
firm_required | 403 | GET /outcomes | The historical / outcomes API is a Firm plan feature. Upgrade to Firm. |
outcomes_failed | 500 | GET /outcomes | Temporary failure. Retry with backoff. |
usage_failed | 500 | GET /usage | Temporary failure. Retry. |
not_found | 404 | {id} routes | Unknown id, or not visible to you (outside your plan or not published). Same response either way. |
no_integration | 409 | POST /leads/{id}/push | No Push destination configured |
no_url | 409 | POST /api/account/integrations/{id}/test (dashboard session) | That destination has no URL to send a test to |
quota_exceeded | 429 | metered routes | Monthly quota used up. The body adds resets_at (ISO); see also Retry-After. |
rate_limited | 429 | write + read routes | Over this key's per-minute cap — 60 writes or 300 reads. Wait Retry-After seconds. |
list_failed | 500 | GET /leads, GET /api/account/keys | Temporary failure. Retry with backoff. |
detail_failed | 500 | GET /leads/{id} | Temporary failure. Retry. |
export_failed | 500 | GET /leads/{id}/export | Temporary failure. Retry. |
document_failed | 500 | GET /leads/{id}/documents/{idx} | Temporary failure. Retry. |
state_failed | 500 | /leads/{id}/state | Temporary failure. Retry. |
push_failed | 500 | POST /leads/{id}/push | Temporary failure. Retry. |
saved_search_failed | 500 | saved searches | Temporary failure. Retry. |
alerts_failed | 500 | GET /api/v1/alerts | Temporary failure. Retry. |
create_failed | 500 | POST /api/account/keys | Temporary failure. Retry. |
revoke_failed | 500 | DELETE /api/account/keys/{id} | Temporary failure. Retry. The key is still active until a revoke succeeds. |
Firewall & legal.
- Data only. SurplusLedger returns public-record-derived facts and evidence. We never contact or solicit property owners, never take an assignment, contingency or power of attorney, and never assist in recovery. What you do with the data is your decision and your responsibility.
- Figures are estimates.
money_statussays how far each one is verified; the detail endpoint shows the evidence and source for every number. A trustee / judicial figure is a labeled gross ceiling, not net-to-owner. - Per-state advisory, not legal advice. Some states regulate surplus recovery. Where that applies, the lead's
legal.advisorycarries a plain-English note ("this is a public-record fact; recovery here may be regulated — consider consulting an attorney"). It's advice to you, never a bar, and never legal advice. - Source disclosure. We expose the verifiability of the single record — the one document, the one parcel, the recorder search that confirms it — and never the browseable roster behind our discovery. A roster-sourced link is served as a verify-at-the-county instruction, never a one-click list.
Get a key and pull your first state.
Subscribe, mint an API key in settings, and the verified feed — figures, lien evidence, recorded documents — is yours to pull, push, or work by hand.