Documentation

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
Mental model

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.
The figure is labeled, never overstated. A trustee or sheriff-sale figure is a gross ceiling — the sale price minus the foreclosing debt, before junior liens — so senior liens can still come out of it. It is never a net-to-owner promise. A tax-sale figure is the exception: the county's own deposited excess. The money_status field and the lien stack always tell you which you're holding.
Firewall. We sell information and evidence. We never contact or solicit property owners, never take an assignment or a contingency, and never assist in recovery — and nothing we serve is legal advice. Where a state regulates surplus recovery, the lead's legal profile carries a plain-English advisory so you can check the rules that apply to you. See Firewall & legal.
The data

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.

GET /api/v1/leads/{id}json
{
  "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

FieldTypeMeaning
iduuidStable lead id. Use it to de-duplicate and to re-fetch.
referencestringA human label like AZ-trustee-TS2345678. Not a join key.
state / countystringTwo-letter state and county name.
sale_typeenumtrustee · judicial · tax.
property_addressstring | nullStreet address when on record. Never required — a lead ships without one.
apnstring | nullParcel / APN when we hold one — the locator a finder pulls records with.
owner_namestring | nullFormer owner when matched; null when unresolved (the lead still ships).
owner_statusenumresolved · owner-unresolved.
owner_name_partialbooleanTrue 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_estimatenumber | nullThe figure. null while an amount is pending (held for verification).
surplus_basisenumceiling (a gross upper bound) or net (verified of the lien stack).
money_statusenumamount-pending · gross-ceiling · recorder-verified-net — how far the figure is verified.
amount_reason / review_notestring | nullPlain-English note when a figure is held or still being confirmed.
sale_date / sale_price / foreclosing_basisdate / numberThe sale inputs behind a gross ceiling (price − debt).
surplus_statusenum | nullSale/surplus lifecycle from the public record: provisional (not yet final) · final · voided (redeemed / set aside).
redemption_pending / redemption_lapse_dateboolean / date | nullJudicial/sheriff: the sale (and surplus) isn't final while redemption is open; lapse_date is when it closes.
claim_statusstring | nullPublic 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_confidencestring | nullHow the recorded deed was joined to this sale when an authoritative figure carried an uncertain owner-name match. Null when nothing to flag.
images_feebooleanTrue 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_feenumber | nullTax sales only: the county's gross excess before its statutory claim fee, and the fee itself (claimable = gross − fee).
deadline_kind / days_left / forfeit_dateenum / number / dateA forfeiture clock where unclaimed surplus escheats to a non-owner (e.g. NV tax); otherwise a hold.
freshness_attimestampWhen we last refreshed this lead. Use it with updated_since.
liens[]arrayDetail only. The lien stack — see below.
owner_profileobject | nullDetail 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.)
legalobjectDetail only. Statute, claim deadline, redemption, escheat, any advisory, and the review date.
documents[]arrayDetail only. Recorded-document evidence — see Documents.
identifiers[] / research_key / research_links[]array / stringDetail only. Every locator we hold, plus where and how to verify at the county.
provenancestringDetail 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.

The data

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.

FieldMeaning
namePlain-English label, e.g. “Notice of Sale”, “Trustee's Deed”.
kinddocument — url opens the specific record. lookup — url (if any) lands on a record-scoped portal search; use hint to find the row.
urlA safe link to the single record or a record-scoped search, or null. Never a browseable roster.
hintFor lookup entries: the exact key to search / how to verify at the county.
rostertrue when the source is a browseable list — then url is null by design (we expose single-record verifiability, never the roster).
cachedPresent 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_urlA 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.
Store the durable link, not the signed one. If your CRM saves a document link to open later, save 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.
Durable vs shareable — pick by who opens it. 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.
In the dashboard

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.

ParamExampleMeaning
statestate=OR,NVTwo-letter states (case-insensitive)
countycounty=OR:Lane,NV:ClarkSTATE:County pairs. County names repeat across states, so always qualify them; the county part is case-insensitive.
sale_typesale_type=trustee,taxSale types
min_surplusmin_surplus=25000surplus_estimate ≥ N (a lead with no estimate is excluded)
money_statusmoney_status=recorder-verified-netMoney status
owner_statusowner_status=resolvedOwner status
deadline_windowdeadline_window=90Only forfeiture leads due within N days
new_withinnew_within=7Only leads freshened within the last N days
qq=SmithFree text over owner, address, parcel, court case # and trustee sale #
sortsort=surplusSort order. Missing or unknown → priority.
limitlimit=100Page size, 1–100 (default 50; out-of-range values are clamped)
cursorcursor=eyJz…The previous page's next_cursor (contract)
updated_sinceupdated_since=2026-11-10T00:00:00ZIncremental 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.

ValueOrder (ties → id ascending)
priorityDefault. Surplus with a bounded lift for money forfeiting within 30/60/90 days, highest first.
surplussurplus_estimate, highest first. No estimate counts as lowest.
sale_dateNewest sale first; no date last
newestMost recently freshened first; never-freshened last
deadlineSoonest 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.
In the dashboard

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.

ActionAPIWebhook
Track / untrackPATCH /leads/{id}/state { tracked }lead.tracked / lead.untracked
NotePATCH /leads/{id}/state { note }lead.noted
DismissPATCH /leads/{id}/state { dismissed }lead.dismissed
Mark seenPATCH /leads/{id}/state { seen: true }— (no event)
Export (CSV / JSON / HTML)GET /leads/{id}/export— pull-only, no event
Push to CRMPOST /leads/{id}/pushlead.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.

In the dashboard

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:

CadenceAlerts
offnone
instantevery 15 minutes
daily07:00 America/Los_Angeles
weeklyMondays 07:00 America/Los_Angeles
Channel
emaila digest email
in_appreserved (no delivery yet)
webhooka saved_search.matched event per lead to your Push destinations
  • Push new matches to your integrations adds the webhook channel — each new match fires a saved_search.matched event 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).

In the dashboard

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.

Automate

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.

curlbash
# 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"
fetchjavascript
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();
pythonpython
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_cursor is non-null, request again with cursor=<next_cursor>, keeping the same sort and filters. Stop when it comes back null.
  • 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.

Removals are not reported. When a lead leaves the feed — sold out from under the surplus, withdrawn, rejected, or no longer in your plan — it simply stops being served. 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:

The monthly quota is per account, not per key. Every API key you create draws from the same monthly read pool — adding keys gives you more credentials (for rotation or separate services), never more quota. The per-minute burst cap, by contrast, is tracked per key.

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.

HeaderOnMeaning
X-Quota-Limitevery endpoint, when your plan has a quotaMetered calls allowed in this monthly window
X-Quota-RemainingsameMetered calls left in this window, after this call (0 on a quota_exceeded 429)
X-Quota-ResetsameWhen the window resets (Unix seconds); same instant as resets_at
X-RateLimit-Limitwrite + read endpointsCalls allowed per minute for this key (60 on writes, 300 on reads)
X-RateLimit-Remainingwrite + read endpointsCalls left in the current minute for that limiter
X-RateLimit-Resetwrite + read endpointsWhen the current minute's window ends (Unix seconds)
Retry-After429 onlySeconds 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.

Automate

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

EventSent whenCarries
lead.tracked / lead.untrackedYou Track / untrack a leadFull detail + your state
lead.notedA lead's private note changes or is clearedFull detail + your state
lead.dismissedYou dismiss a leadFull detail + your state
lead.pushedYou press Push to CRM / call the push endpointFull detail + my_note
saved_search.matchedA new lead enters your feed and matches a saved search (webhook channel on)Light feed row (full detail opt-in)
lead.changedA lead you track changes in a way that mattersLight feed row + changes[] (full detail opt-in)
testYou press Send test on a destinationNo 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 natural key.
  • 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 (label e.g. Trustee's Deed). First-seen only.
  • visibility — { old, new } as in_feed ↔ withdrawn when 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: true on the saved search upgrades its saved_search.matched events. Webhook channel only; email and in-app are unchanged.
  • Account-level — "Include full lead detail in lead.changed webhooks" in Settings → Integrations upgrades every tracked-lead change (they aren't tied to a saved search). When a lead is withdrawn, lead is null and changes holds only the visibility entry.

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.

HeaderValue
X-SL-TimestampTime of sending, Unix seconds
X-SL-SignatureLowercase hex HMAC-SHA256 of the signed string, keyed with your full secret
verify.jsjavascript
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);
}
verify.pypython
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.matched and lead.changed get 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.

curlbash
# 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_…"
Automate

Integration recipes.

A typical CRM setup, end to end

  1. Add a webhook destination in Settings → Integrations and store its whsec_ signing secret. Send a test event and confirm your receiver verifies the signature.
  2. Opt a high-value saved search into webhook + full detail. Create the search with your filters, cadence set (e.g. instant), the webhook channel on, and webhook_full_detail: true.
  3. Receive saved_search.matched for each new match — with full detail, it already carries the lien stack and documents[]. Verify the signature, dedupe on saved_search.id + lead.id + at, and create the record in your CRM.
  4. Store the download_urls (prefixed with your API host), never cached.pdf_url — the durable link re-signs on every open.
  5. Track the lead you decide to work — PATCH /leads/{id}/state { tracked: true } — so it starts sending lead.changed.
  6. Receive lead.changed when the figure, liens, deadline or a new deed lands (turn on account-level full detail to get the evidence inline). Apply the typed changes[] to your record.
  7. Reconcile on a schedule with GET /api/v1/alerts?since=… (catch any missed lead.changed) and re-fetch any lead by id before you act, to catch withdrawals.

When to call which endpoint — and why

You want to…UseWhy
Backfill everything onceCrawl GET /leads with the cursorThe full current feed; keep meta.as_of for the next step.
Stay current efficientlyGET /leads?updated_since=… on a scheduleOnly leads that actually changed — cheap. Dedupe on id.
Get new matches the moment they appearsaved_search.matched webhookPush, no polling. Opt into full detail to skip the call-back.
React to a tracked lead movinglead.changed webhook + GET /alerts to reconcileNear-instant push; the pull API backfills anything missed.
Get the full evidence for one leadGET /leads/{id}Only when a feed-level event didn't carry the lien stack / documents you need.
Catch withdrawals / removalsRe-fetch by id · periodic full resyncupdated_since never reports a removal — a 404 on re-fetch is your signal.
Download a document laterStore download_url, open GET /leads/{id}/documents/{idx}Durable (re-signs); not metered. cached.pdf_url rots in ~1h.
Idempotency & the lossy stream. Feed-level webhooks are single-attempt — events can be missed, duplicated, or arrive out of order. Make every handler idempotent (upsert by lead 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.
For organizations

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.

curlbash
# 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.

Who Firm is for: high-volume recovery firms, multi-agent offices, law-firm recovery practices, and data resellers. Resale / redistribution is available under Firm plus a written licensing addendum — still strictly data-provider, firewall intact (no owner contact, public-record-derived only). Want help connecting GoHighLevel, a bulk import, or licensing? Ask in Settings → Team.
Reference

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.

EndpointWhat it doesMetered
GET /api/v1/leadsThe feed: a filtered, sorted, paginated list of leads (no lien array) plus headline totalsyes
GET /api/v1/leads/{id}One lead with its full evidence: lien stack, legal profile, documents, provenanceyes
GET /api/v1/leads/{id}/exportOne 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/exportBulk 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}/stateYour Workspace state for one leadyes
PATCH /api/v1/leads/{id}/stateTrack / dismiss / note / mark seenonly if it fires an event
POST /api/v1/leads/{id}/pushSend the lead's data to your Push destinations (webhooks)yes
GET /api/v1/saved-searchesYour saved searchesyes
POST /api/v1/saved-searchesCreate a saved searchno
PATCH /api/v1/saved-searches/{id}Rename it or change its alert schedule/channelsno
DELETE /api/v1/saved-searches/{id}Delete itno
GET /api/v1/alertsYour 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/usageYour 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/keysList API keys (dashboard session only)no
POST /api/account/keysCreate an API key (dashboard session only)no
DELETE /api/account/keys/{id}Revoke an API key (dashboard session only)no

Enums

Value
trusteeNon-judicial trustee sale
judicialJudicial / sheriff sale
taxTax sale
Value
resolvedAn owner name is on record
owner-unresolvedNo usable owner name yet. The lead is still published, and the locators (parcel, case #, address) are there for your own research.
ValueThe figure is…
amount-pendingNot yet known (under review)
gross-ceilingAn upper bound: sale price minus the foreclosing debt, before junior liens
recorder-verified-netNet of the recorded lien stack we verified (the evidence is in the detail)
FormatResponse
csvtext/csv, one header row plus one data row (locators, money-waterfall inputs, statuses, lien_count), as an attachment
jsonThe detail shape { "data": … } as an attachment
htmlA per-subscriber watermarked Evidence Report (API-only)

Workspace state & saved-search bodies

FieldTypeEffect
trackedbooleanAdd to or remove from your tracked list (fires lead.tracked / lead.untracked)
dismissedbooleanHide from your feed (lead.dismissed on true)
notestring | nullYour note, ≤ 4000 chars (longer is truncated). "" or null clears it (lead.noted).
seentrueStamp seen_at = now (no event)
FieldOnMeaning
namePOST, PATCH≤ 120 chars (default "Saved search")
filterPOST onlyAn object of saved-filter keys. Unknown keys → 400 invalid_filter; over 4 KB → 400 filter_too_large. Not changeable after creation.
cadencePOST, PATCHAlert schedule (below). Default off: alerts are opt-in.
channelsPOST, PATCHAlert channels (below). Default ["email","in_app"]. Unknown values are dropped.
webhook_full_detailPOST, PATCHWhen 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.
KeyQuery-param equivalent
statesstate (array)
countiescounty (array of STATE:County)
sale_typessale_type (array)
min_surplusmin_surplus
money_statusesmoney_status (array)
owner_statusesowner_status (array)
deadline_windowdeadline_window
new_within_daysnew_within
qq
sortsort
Reference

Errors & limits.

Branch on the error code, never the message. A 500 never carries internal text — retry with backoff.

CodeHTTPWhereMeaning / what to do
unauthorized401allMissing, invalid or revoked API key, or no session
invalid_id400{id} routesThe id isn't a UUID
invalid_cursor400GET /leadsThe cursor doesn't decode, or was issued for a different sort. Restart without cursor.
invalid_updated_since400GET /leadsupdated_since isn't ISO-8601 with a time zone
bad_request400state PATCH, saved searchesThe body isn't a JSON object
invalid_filter400POST /saved-searchesThe filter has unsupported keys (the message lists the supported ones)
filter_too_large400POST /saved-searchesThe filter is over 4 KB
no_changes400PATCH /saved-searches/{id}Nothing writable in the body
saved_search_limit403POST /saved-searchesYour plan's saved-search cap is reached
key_limit403POST /api/account/keysYour plan's active-key cap is reached, or you have no plan
account_suspended403all authenticated routesYour account is under review and access is paused (suspended or closed). Email support@surplusledger.com.
role_forbidden403write routesA 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_required403GET /outcomesThe historical / outcomes API is a Firm plan feature. Upgrade to Firm.
outcomes_failed500GET /outcomesTemporary failure. Retry with backoff.
usage_failed500GET /usageTemporary failure. Retry.
not_found404{id} routesUnknown id, or not visible to you (outside your plan or not published). Same response either way.
no_integration409POST /leads/{id}/pushNo Push destination configured
no_url409POST /api/account/integrations/{id}/test (dashboard session)That destination has no URL to send a test to
quota_exceeded429metered routesMonthly quota used up. The body adds resets_at (ISO); see also Retry-After.
rate_limited429write + read routesOver this key's per-minute cap — 60 writes or 300 reads. Wait Retry-After seconds.
list_failed500GET /leads, GET /api/account/keysTemporary failure. Retry with backoff.
detail_failed500GET /leads/{id}Temporary failure. Retry.
export_failed500GET /leads/{id}/exportTemporary failure. Retry.
document_failed500GET /leads/{id}/documents/{idx}Temporary failure. Retry.
state_failed500/leads/{id}/stateTemporary failure. Retry.
push_failed500POST /leads/{id}/pushTemporary failure. Retry.
saved_search_failed500saved searchesTemporary failure. Retry.
alerts_failed500GET /api/v1/alertsTemporary failure. Retry.
create_failed500POST /api/account/keysTemporary failure. Retry.
revoke_failed500DELETE /api/account/keys/{id}Temporary failure. Retry. The key is still active until a revoke succeeds.
Reference

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_status says 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.advisory carries 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 started

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.