Skip to Content
API ReferenceEstimatesEndpoints

Estimates

Everything under /api/estimate is served by src/routes/estimate.ts: the AVM (automated valuation model) surface, a proxy to the Repliers estimates API (src/services/repliers/estimate.ts) with owner-adjustment and property-details logic in src/services/estimate.ts. Terms are defined in the Glossary.

This page is the operation index. The summary table carries each endpoint’s auth, caching, side effects and error statuses; the mechanisms (enrichment, tax adjustment, ownership, notifications, the agent entry points) are on the pipeline page.

Estimate pipeline · Workflow W6 · Email · Scrubbing

Operations

“Cached / header” names the response cache header the handler writes; no estimate route caches or sets Cache-Control. “Passthrough” is middleware.jwt.passthrough (a guest is allowed, an invalid token is a 401); “strict” is middleware.jwt. Every handler sets ctx.state["enable.xff"].

Method & pathAuthCached / headerSide effectsErrorsDeep dive
POST /api/estimatepassthroughnoneEstimate created upstream; for a user the estimate is saved to the clientId and the email flags are sent with the preset defaults (a guest’s flags are forwarded only when present in the body); detached FUB “Seller Inquiry” event and note, guests included400 (validation; boardId is the only required top-level field, and details, address and taxes carry required fields when sent); relayed upstream statusCreate
GET /api/estimatepassthroughnoneDetached FUB view event when BOSS_REPORT_CLIENT_VIEW_ESTIMATE and the caller is a signed-in user400 (neither estimateId nor ulid; estimateId above settings.max_estimate_id, which the defaults preset sets to 0, so there any positive estimateId is a 400 and only ulid reads work; ulid not 26 characters); 404 Not found when upstream returns no estimate; relayed upstream statusReading
GET /api/estimate/mystrictnonenone401; relayed upstream statusReading
PATCH /api/estimate/{estimateId}strict + assertOwnershipnoneEstimate updated upstream401; 403 You are not allowed to access this estimate; 404 (estimate unknown, from the ownership read); 400 (validation); relayed upstream statusOwnership
DELETE /api/estimate/{estimateId}strict + assertOwnershipnoneEstimate deleted upstream401; 403; 404 (unknown estimate, or the upstream returned nothing); 400; relayed upstream statusOwnership
GET /api/estimate/property_detailspassthroughnonenone400 (city, streetName, streetNumber required); relayed upstream statusProperty details

GET /api/estimate/property_details reads listings through RepliersListings.search, not ListingsService, so the scrubber does not run on its response. When nothing is found and SETTINGS_EXTENDED_PROPERTY_DETAILS is off, the handler assigns an empty body.

Email delivery of estimates (immediate and monthly) is controlled by REPLIERS_ESTIMATES_SEND_EMAIL_NOW / _MONTHLY; see the notification rules and Email.

Estimate links in CRM events use the eventsCollection.estimateUrl template; see Follow Up Boss.

Verified against portal-backend 997ae3e, 2026-10-20.

Last updated on