SearcherOS Developers

Broker Listing API (v1)

Push your business-for-sale listings into the SearcherOS buyer feed. Buyers click “View Original Listing” straight back to your own website — the lead stays with you. First-party data in, buyer traffic out.

Authentication

Every request uses a bearer token: Authorization: Bearer sos_brk_live_…. Keys are environment-scoped — sos_brk_live_* writes to the production feed, sos_brk_test_*writes only to an isolated sandbox (see Sandbox). Keys are rotatable and revocable; contact us to rotate.

Claiming your key

We never email raw keys. During onboarding you receive a one-time claim link(/broker/claim/<token>) that expires in 72 hours and reveals your live + test keys exactly once. Copy them somewhere safe immediately — they are hashed at rest and cannot be shown again. Lost it? Contact us for a fresh link (your old key is revoked).

Broker view — see how your listings appear

Alongside your keys, onboarding gives you a private broker view link (/broker/<token>) — a read-only page, no login required, that shows how your pushed listings render in the buyer feed: the “Listed direct by broker” card, the financials and AI summary buyers see, each listing’s status (live / processing / rejected with a reason / stale / removed), and the 60-day heartbeat countdown. It’s the human-friendly companion to the reconcile API — handy for a non-engineer on your team to eyeball coverage at a glance. The link is private to your brokerage and revocable; contact us to re-issue it.

Field contract

A listing has required and optional fields. A missing or invalid required field rejects the whole listing with a per-field reason — it is never partially stored.

FieldRequiredRule
external_idyesYour stable listing ID — the upsert key.
titleyesNon-empty, ≤ 300 chars.
listing_urlyeshttps, host must be one of your verified allowed_domains.
location_stateyesValid 2-letter US state.
asking_priceyesNumber within $500,000 – $30,000,000.
industryyesFree text — mapped to our taxonomy (unmappable → "Other", not a reject).
cash_flow + cash_flow_typerecommendedNumber + 'sde'|'ebitda'. Absence lowers quality score, not a reject.
gross_revenue, location_city, description, year_established, broker_name, broker_email, posted_dateoptionalEnrich the feed card.

Field names are chosen for broker ergonomics and map to our internal schema server-side, so the published contract stays stable. You always send cash_flow (amount) + cash_flow_type; we store them in the right columns for you.

Upsert a listing — PUT /listings/{external_id}

Idempotent: re-sending the same external_id updates in place and re-confirms the listing (resets the staleness clock). Accepted listings flow through the same quality pipeline as the rest of our feed, so a 202 means “accepted for processing,” not “live yet” — poll the reconcile endpoint for status.

curl -X PUT https://searcheros.ai/api/v1/broker/listings/BRK-10293 \
  -H "Authorization: Bearer sos_brk_live_XXXX" \
  -H "Content-Type: application/json" \
  -d '{
    "external_id": "BRK-10293",
    "title": "Profitable HVAC Company - Central Texas",
    "listing_url": "https://yourbrokerage.com/listings/10293",
    "asking_price": 2400000,
    "cash_flow": 620000,
    "cash_flow_type": "sde",
    "gross_revenue": 4100000,
    "location_city": "Austin",
    "location_state": "TX",
    "industry": "HVAC / Home Services",
    "description": "...",
    "broker_name": "Jane Doe",
    "broker_email": "jane@yourbrokerage.com",
    "posted_date": "2026-06-01"
  }'

# 202 Accepted
{ "id": "1f2e…", "external_id": "BRK-10293", "status": "accepted", "request_id": "req_…" }

Bulk upsert — POST /listings/batch

Push up to 100 listings per request. Each item is validated and accepted/rejected independently, so a partial batch still lands the valid rows. Response is 207 Multi-Status.

curl -X POST https://searcheros.ai/api/v1/broker/listings/batch \
  -H "Authorization: Bearer sos_brk_live_XXXX" \
  -H "Content-Type: application/json" \
  -d '{ "listings": [ { "external_id": "BRK-1", ... }, { "external_id": "BRK-2", ... } ] }'

# 207 Multi-Status
{ "results": [
    { "external_id": "BRK-1", "status": "accepted", "id": "…" },
    { "external_id": "BRK-2", "status": "rejected",
      "errors": [{ "field": "listing_url", "reason": "host not in allowed_domains" }] }
  ], "request_id": "req_…" }

Remove a listing — DELETE /listings/{external_id}

Soft delete: we hide the listing from the feed but keep any buyer who saved it in their pipeline (they’re notified once that you removed it). Re-pushing the same external_id relists it. Idempotent — a repeat delete is a no-op.

curl -X DELETE https://searcheros.ai/api/v1/broker/listings/BRK-10293 \
  -H "Authorization: Bearer sos_brk_live_XXXX"

# 200 OK
{ "external_id": "BRK-10293", "status": "removed", "buyers_notified": 3, "request_id": "req_…" }

Reconcile — GET /listings (your feedback loop)

This is how you learn each listing’s status and any rejection reason — poll it after pushing. Partner-scoped, cursor-paginated. Filter with ?status=, paginate with ?cursor= and ?limit= (1–100, default 50).

# Poll for status; page through with the returned cursor.
curl "https://searcheros.ai/api/v1/broker/listings?status=rejected&limit=50" \
  -H "Authorization: Bearer sos_brk_live_XXXX"

{
  "data": [
    {
      "external_id": "BRK-10293",
      "id": "1f2e…",                 // our UUID once it lands; null while pending
      "status": "live",               // pending | live | rejected | stale | removed
      "rejection_type": null,         // 'schema' | 'quality' | null
      "rejection_reason": null,       // sanitized reason when status=rejected
      "listing_url": "https://yourbrokerage.com/listings/10293",
      "in_feed": true,
      "last_confirmed_active_at": "2026-06-18T12:00:00Z",
      "heartbeat_due_at": "2026-08-17T12:00:00Z",
      "updated_at": "2026-06-18T12:00:00Z"
    }
  ],
  "pagination": { "next_cursor": "eyJ…", "has_more": true, "limit": 50 },
  "request_id": "req_…"
}

Status lifecycle: pending (in the quality pipeline) → live (visible to buyers). rejected = fix & re-upsert. stale = past the 60-day heartbeat; re-upsert to revive. removed = you deleted it; re-upsert to relist.

Errors & rejection reasons

Errors are structured and always carry a request_id. Two rejection tiers:

Hard reject (schema) — returned synchronously: 400 (bad JSON / batch shape), 401 (bad key), 403 (suspended account or over your listing cap), 404 (unknown listing), 422 (validation — includes per-field errors), 429 (rate limited).

Soft reject (quality) — surfaced asynchronously on the reconcile endpoint as status:"rejected", rejection_type:"quality", with one of these sanitized reasons:

quality_low            — failed the overall quality gate
duplicate_of_active    — duplicate of a listing already active
description_too_thin   — description too short / lacking detail
out_of_criteria        — outside the platform's deal criteria
invalid_listing        — not a valid operating business listing
spam                   — flagged as spam/junk

Rate limits

Limits are per API key: ~120 upserts/min and ~120 reconcile calls/min, with a tighter ~20/min on the batch endpoint (each call carries up to 100 items). Over the limit returns 429 with a retry_after (seconds).

Staleness / heartbeat (60 days)

Re-confirm each listing at least every 60 days by re-sending it (a PUT with the same external_id). If a listing isn’t re-confirmed within 60 days we email your contact, and after a short grace period we delist it (it shows as stale on reconcile). Re-pushing revives it instantly. heartbeat_due_at on each reconcile row tells you when each listing is next due.

Sandbox / test keys

Integrate against sos_brk_test_* first. Sandbox runs the identical synchronous validation (same hard-reject reasons and response shapes) but the async quality gate is simulated deterministically — an empty/short description returns description_too_thin, and re-submitting the same external_id returns duplicate_of_active. Sandbox data is fully isolated from the production feed and auto-purges after 30 days. Once your integration passes against test keys, switch to your live key.

API versioning & changelog policy

The API is versioned in the path (/api/v1/). Within v1 we only make backward-compatible changes: we may add new optional request fields and new response fields, and add new enum values to status / rejection reasons — so parse defensively and ignore unknown fields. Breaking changes ship under a new version path (/api/v2/) with advance notice to integrators; v1 keeps running during the migration window. Material changes are announced to your contact email.