Paella AISign in

Public API and MCPPreview

Everything the app shows, for a program or an agent

Every screen of Paella AI reads the public API, and every operation of the API is also an MCP tool. Both come from one declaration, so they cannot disagree with each other or with this page.

Today the API serves drawn sample parcels. Each dataset says so in its is_sample field, and every rule is a draft.

Getting started

Make a key in Settings, under API keys, and send it as a bearer token. A key works on /v1 and on the MCP endpoint, and nowhere else. A read key reads; a write key can also create, change and delete.

curl "https://paella-api.onrender.com/v1/parcels?min_units=2&limit=3" \
  -H "Authorization: Bearer $PAELLA_API_KEY"

A key belongs to one workspace and always acts in it. A signed-in session can name another of its workspaces with the X-Workspace-Id header.

Make an API key

Paging

A list is always an object with data, has_more and next_cursor, never a bare array. A long list takes limit (50 unless you say otherwise, 200 at most) and cursor: send next_cursor back as cursor to read on. A short list arrives whole, with has_more false, and takes neither.

{
  "data": [{ "id": "prc_…", "apn": "…", "address": "…", "score": 71 }],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJhZnRlciI6…"
}

Errors

Every error has the same shape. Branch on code, which never changes once published. Never match on message: it is written for a person and follows Accept-Language. request_id names the request if you write to us about it.

{
  "error": {
    "type": "invalid_request_error",
    "code": "resource_not_found",
    "message": "There is no such parcel.",
    "param": null,
    "request_id": "14da6b373b874e59b25ee475772da4d9"
  }
}

Retries

Send an Idempotency-Key header with every create. A retry with the same key and the same body gets the first answer back and makes nothing new. Answers are kept for 24 hours.

curl -X POST "https://paella-api.onrender.com/v1/shortlists" \
  -H "Authorization: Bearer $PAELLA_API_KEY" \
  -H "Idempotency-Key: 0b6f3c1e-first-try" \
  -H "Content-Type: application/json" \
  -d '{"name": "Two units, Inner Sunset"}'

Rate limits

Requests are counted per key, per minute. Past the limit the API answers 429 with a Retry-After header that says how many seconds to wait. What a workspace has asked is kept as counts by day, key, operation and outcome: read it with usage.daily.

What the data is

Every fact names the dataset snapshot it came from and the date it was true as of, and every rule result names the facts it read. Keep them with whatever you build on top.

Facts from a dataset whose license forbids passing it on are left out of the API. A parcel lists what was left out in withheld_fact_keys.

A rule result is information, not legal advice. Each one carries a line saying who to verify it with; show that line to whoever reads your output.

Keeping in step

To keep your own copy of a workspace's shortlists, scenarios and saved searches current, read the change feed instead of listing everything again. Each entry says what kind of change, to which record, and the ids of the records involved; you fetch the record itself. Read to the end, keep next_cursor, and come back with it: nothing is skipped and nothing arrives twice. Entries are kept 30 days.

A webhook is the same feed, pushed. Add an endpoint and each entry is posted to it as JSON, within about a minute of the change. A delivery can arrive more than once and out of order: the Paella-Delivery header is the same on every retry of one delivery, and the entry's id is the same wherever you meet it.

One kind is not something a person did: shortlist.parcel_changed. A reading of a dataset changed something about a parcel that is on a shortlist, and each workspace watching it gets one entry for that reading. Its data names the parcel and the reading (parcel_id, snapshot_id); what changed is in the parcel's timeline (parcels.timeline). A reading of a dataset this API may not pass on is not announced.

{
  "id": "chg_…",
  "kind": "shortlist.item_added",
  "resource_type": "shortlist",
  "resource_id": "sht_…",
  "data": { "parcel_id": "prc_…" },
  "created_at": "2026-11-24T15:04:05.123456Z",
  "workspace_id": "wsp_…"
}

Every delivery is signed with the secret you were given when you added the endpoint. Check the Paella-Signature header before trusting a body: it holds the time the delivery was signed and an HMAC-SHA256 of that time, a dot and the raw body. Refuse one that is more than five minutes old.

import { createHmac, timingSafeEqual } from "node:crypto";

// header: the Paella-Signature header, "t=<unix seconds>,v1=<hex>"
// body:   the request body exactly as it arrived, before any JSON parsing
export function isFromPaella(header: string, body: Buffer, secret: string): boolean {
  const { t, v1 } = Object.fromEntries(header.split(",").map((part) => part.split("=")));
  if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${t}.`).update(body).digest();
  const given = Buffer.from(v1, "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Answer with a 2xx within ten seconds. Anything else is retried for about an hour, then given up on, and an endpoint that fails five deliveries in a row is turned off until you turn it back on. Redirects are not followed. Whatever a webhook missed is still in the feed. To try an endpoint without changing anything, send it a ping (webhooks.ping): one signed delivery of kind webhook.ping, which is not in the feed.

MCP

The MCP endpoint is POST /mcp: JSON-RPC 2.0 over HTTP, with initialize, ping, tools/list and tools/call. There is no session. Each request carries the key, the same way an API call does.

curl -X POST "https://paella-api.onrender.com/mcp" \
  -H "Authorization: Bearer $PAELLA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'

A tool is named after its operation, with an underscore for the dot: parcels.search is parcels_search. Its arguments are the operation's parameters, and a JSON body goes under body.

curl -X POST "https://paella-api.onrender.com/mcp" \
  -H "Authorization: Bearer $PAELLA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/call",
       "params": {"name": "parcels_search", "arguments": {"min_units": 2, "limit": 3}}}'

Reference

Generated from the API's own schema, so it is what the API does today. Descriptions are the schema's.

Parcels, rules and sources

GET/v1/datasets

Where the data comes from

MCP tool datasets_list

Parameters

  • marketstringin the query · optional · default "sf"

    The market key.

Returns 200: a page of DatasetOut

  • iddts_… id
  • is_sampleboolean
  • keystring
  • last_fetched_atstring (date-time)can be null
  • licensestring
  • namestring
  • publisherstring
  • redistributableboolean

    False when the license keeps its contents out of the public API.

  • refresh_cadencestring
  • row_countintegercan be null
  • source_urlstring

    Where the dataset is published. For sample data, a path in this repository.

GET/v1/datasets/{dataset_id}

One dataset: its license, what it states and which rules depend on it

Who publishes the dataset and under what license, the facts it currently states with how many parcels each, how many parcels and listings came from it, the rules that read any of those facts, and how its newest reading went. Counts only. Through the public API a dataset whose license keeps its contents in the app is still described, with its facts named, and every count of what it says is null.

MCP tool datasets_get

Parameters

  • dataset_idstringin the path · required

    The dataset, by its id (`dts_…`).

Returns 200: DatasetDetail

  • factsDatasetFact[]

    Every fact the dataset currently states of at least one parcel.

  • iddts_… id
  • is_sampleboolean
  • keystring
  • last_fetched_atstring (date-time)can be null
  • latest_readingSnapshotOutcan be null

    The newest reading, applied or not. `datasets.snapshots` has every one.

  • licensestring
  • listingsintegercan be null

    Active listings that came from one of its readings. Null on the same terms.

  • marketstring
  • namestring
  • parcelsintegercan be null

    Parcels whose own row came from one of the dataset's readings. Null through the public API for a dataset whose license keeps its contents in the app.

  • publisherstring
  • redistributableboolean

    False when the license keeps its contents out of the public API.

  • refresh_cadencestring
  • row_countintegercan be null
  • rulesDatasetRule[]

    Every rule whose newest version reads a fact the dataset states: what a new reading of it can change.

  • source_urlstring

    Where the dataset is published. For sample data, a path in this repository.

GET/v1/datasets/{dataset_id}/snapshots

A dataset's readings, newest first

Each time the dataset was read: when, whether the reading was applied, and how it went (rows read and turned away, parcels and facts changed, facts withdrawn). Every fact names the reading it came from by this id. A reading that failed changed nothing, and says why.

MCP tool datasets_snapshots

Parameters

  • dataset_idstringin the path · required

    The dataset, by its id (`dts_…`).

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

Returns 200: a page of SnapshotOut

  • dataset_iddts_… id
  • errorstringcan be null

    Why it failed, when it did.

  • fetched_atstring (date-time)

    When the reading was taken.

  • idsnp_… id
  • reportReadingReportOutcan be null

    How the reading went. Null when nothing reported on it.

  • row_countintegercan be null
  • source_urlstringcan be null

    The address that was read.

  • statusstring

    `loading` while it is being read, `ready` once it was applied whole, `failed` when it was not applied at all.

GET/v1/facts

Every fact a parcel can have

The whole vocabulary: each fact's key, its label, how its value reads and, for a fact with a fixed list of values, the list. A parcel never carries a fact that is not here, and nothing here is about who lives somewhere.

MCP tool facts_list

Returns 200: a page of FactSpecOut

  • groupstring

    The section a parcel's page shows it under.

  • keystring

    The fact's key, as a parcel's `facts` give it: `zoning.district`.

  • kindstring

    How its value reads: text, number, bool, date or enum.

  • labelstring

    A short name for the fact, in English.

  • optionsstring[]

    For an `enum` fact, every value it can take. Empty otherwise.

  • unitstringcan be null
GET/v1/facts/{fact_key}

One fact across a market: who states it, which rules read it, how many parcels hold each value

What the fact is, the datasets its current values come from (each with its license), the rules that declare they read it, how many parcels have one and, for a yes-or-no fact or one with a fixed list of values, how many parcels hold each. Counts only: the value on one parcel is on that parcel, with the reading that said it. Through the public API a dataset we may not pass on is still named, and nothing it says is counted.

MCP tool facts_get

Parameters

  • fact_keystringin the path · required

    The fact's key, as a parcel's `facts` give it: `zoning.district`.

  • marketstringin the query · optional · default "sf"

    The market key.

Returns 200: FactDetail

  • counts_include_sampleboolean

    True when drawn sample parcels, which describe no real property, are among those counted.

  • datasetsFactDataset[]

    Every dataset a current value of the fact comes from.

  • groupstring

    The section a parcel's page shows it under.

  • keystring

    The fact's key, as a parcel's `facts` give it: `zoning.district`.

  • kindstring

    How its value reads: text, number, bool, date or enum.

  • labelstring

    A short name for the fact, in English.

  • marketstring
  • optionsstring[]

    For an `enum` fact, every value it can take. Empty otherwise.

  • parcelsinteger

    Parcels of the market with a current value this surface may count.

  • rulesFactRule[]

    Every rule of the market whose newest version declares it reads the fact.

  • unitstringcan be null
  • valuesFactValueCount[]can be null

    For a `bool` or `enum` fact, how many parcels hold each value, every declared value present. Null for any other kind. Counts only.

GET/v1/markets

The markets there are

Every market, by key. A market is listed whether or not anything is loaded for it yet; what it holds is asked of the other operations.

MCP tool markets_list

Returns 200: a page of MarketEntry

  • countrystring

    ISO 3166-1 alpha-2.

  • dealsboolean

    Whether a deal is worked out for parcels here. False where the market's property tax and transfer tax have not been entered: `parcels.deal` refuses there, and a score has no income part.

  • keystring

    What the `market` parameter of the other operations takes.

  • namestring
  • planning_authoritystring

    The body whose rules are read for parcels here, named on every verdict.

  • planning_authority_urlstring
  • timezonestring

    IANA time zone.

GET/v1/neighborhoods

The neighborhoods of a market

MCP tool neighborhoods_list

Parameters

  • marketstringin the query · optional · default "sf"

    The market key.

Returns 200: a page of NeighborhoodOut

  • idnbh_… id
  • latitudenumber
  • longitudenumber
  • namestring
  • slugstring
GET/v1/neighborhoods/{neighborhood_id}

One neighborhood in counts: its parcels, asking prices, rules and hazards

How many parcels the neighborhood has and how many are listed, the lowest, middle and highest asking price among them, how many parcels each rule allows, refuses, flags or cannot decide, and how many sit in each mapped hazard. Every figure counts parcels or repeats a published price. There is no score or rank of a neighborhood here, and nothing about who lives in one. A rule result is information, not legal advice: `verify` is the line to show with it.

MCP tool neighborhoods_get

Parameters

  • neighborhood_idstringin the path · required

    The neighborhood, by its id (`nbh_…`).

Returns 200: NeighborhoodDetail

  • asking_pricesAskingPricescan be null

    The spread of asking prices over those listings: published prices, not a valuation. Null when none is listed.

  • counts_include_sampleboolean

    True when drawn sample parcels, which describe no real property, are among those counted.

  • hazardsNeighborhoodHazard[]

    Each mapped hazard, with how many parcels are in it.

  • idnbh_… id
  • latitudenumber

    Of the neighborhood's center point, in degrees (WGS 84).

  • listed_parcelsinteger

    Of those, how many have an active listing this surface may show.

  • longitudenumber

    Of the neighborhood's center point, in degrees (WGS 84).

  • marketstring
  • namestring
  • parcelsinteger

    Parcels on file inside the neighborhood.

  • rulesNeighborhoodRule[]

    Each rule of the market, with how many of the neighborhood's parcels get each outcome. Counts only.

  • slugstring
  • verifystring

    The line every rule result carries: information, not advice.

GET/v1/parcels

Search parcels, best screening score first

A parcel must pass every filter given. The order is the screening score, best first, then the id, and it holds from one page to the next. On the public API a filter reads only facts from datasets whose license lets them be passed on, the same facts a parcel returns there.

MCP tool parcels_search

Parameters

  • qstringin the query · optional

    Part of an address or a parcel number.

  • neighborhoodstringin the query · optional

    A neighborhood id (`nbh_…`).

  • bboxstringin the query · optional

    west,south,east,north in degrees.

  • typestring[]in the query · optional

    Property types to keep. Repeatable.

  • min_unitsintegerin the query · optional

    At least this many units on the parcel.

  • max_unitsintegerin the query · optional

    At most this many units on the parcel.

  • listedbooleanin the query · optional

    Only parcels with (or without) an active listing.

  • max_pricestringin the query · optional

    An asking price ceiling, e.g. '1500000'.

  • min_scoreintegerin the query · optional

    A screening score of at least this, 0 to 100. A way to sort, not a valuation.

  • rulestring[]in the query · optional

    Keep parcels where a rule has an outcome: '<code>:<outcome>'. Repeatable; all must hold.

  • exclude_hazardstring[]in the query · optional

    Leave out parcels with a hazard: flood, liquefaction, soft_story, landslide. Repeatable.

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

  • marketstringin the query · optional · default "sf"

    The market key.

Returns 200: a page of ParcelSummary

  • addressstringcan be null

    The street address, when the parcel has one.

  • apnstring

    The assessor's parcel number (block/lot in San Francisco).

  • asking_priceMoneycan be null

    Of the newest active listing, when there is one.

  • idprc_… id
  • latitudenumber

    Of the parcel's center point, in degrees (WGS 84).

  • longitudenumber

    Of the parcel's center point, in degrees (WGS 84).

  • lot_sqftnumbercan be null

    The lot's area in square feet.

  • neighborhoodNeighborhoodRefcan be null
  • property_typestring

    One of single_family, condo, tic, multi_family, mixed_use, land, other, unknown.

  • scoreintegercan be null

    The screening score, 0 to 100. A way to sort, not a valuation.

  • unitsintegercan be null

    Homes on the parcel, when known.

  • year_builtintegercan be null
GET/v1/parcels/{parcel_id}

Everything known about one parcel, with its sources

Its facts, each with the dataset snapshot it came from and the date it was true as of; what every rule says about it, with reasons and the facts each one read; its listing, its score and its views. A rule result is information, not legal advice: `verify` is the line to show with it.

MCP tool parcels_get

Parameters

  • parcel_idstringin the path · required

    The parcel, by its id (`prc_…`).

Returns 200: ParcelDetail

  • addressstringcan be null

    The street address, when the parcel has one.

  • apnstring

    The assessor's parcel number (block/lot in San Francisco).

  • asking_priceMoneycan be null

    Of the newest active listing, when there is one.

  • building_sqftnumbercan be null

    The building's floor area in square feet.

  • ended_factsFactVersionOut[]

    Facts the parcel once had and has no value for today, such as one its source took back: the last value of each, with how it ended. No rule or score reads them. `parcels.fact_history` gives the rest.

  • factsFactOut[]

    What is known about the parcel, each fact with its source and the date it was true as of.

  • idprc_… id
  • latitudenumber

    Of the parcel's center point, in degrees (WGS 84).

  • listingListingOutcan be null

    The newest active listing, when there is one this surface may show.

  • longitudenumber

    Of the parcel's center point, in degrees (WGS 84).

  • lot_sqftnumbercan be null

    The lot's area in square feet.

  • marketMarketOut
  • neighborhoodNeighborhoodRefcan be null
  • property_typestring

    One of single_family, condo, tic, multi_family, mixed_use, land, other, unknown.

  • rulesRuleOut[]

    What each rule says about the parcel, with its reasons and the facts it read.

  • scoreintegercan be null

    The screening score, 0 to 100. A way to sort, not a valuation.

  • score_detailScoreOutcan be null

    The screening score, taken apart: what added to it and what took away.

  • sourceSourceOut

    The dataset snapshot the parcel itself came from.

  • storiesintegercan be null
  • unitsintegercan be null

    Homes on the parcel, when known.

  • verifystring

    The line every verdict carries: information, not advice.

  • viewsViewOut[]

    What can be seen from the parcel, scored, when a view model has run.

  • withheld_fact_keysstring[]

    Facts on file whose dataset license does not let this API pass them on: named, never valued. Always empty in the app.

  • year_builtintegercan be null
POST/v1/parcels/{parcel_id}/deal

Run the four ownership scenarios for a parcel

Nothing is saved. Whatever the request leaves out takes the parcel's own value or the engine's default, and the response reports each one.

MCP tool parcels_deal

Parameters

  • parcel_idstringin the path · required

    The parcel, by its id (`prc_…`).

Body: DealRequest

  • assumptionsAssumptionsInoptional

    Rates, costs and terms to use instead of the defaults. The result reports every one it used.

  • pricenumber | stringoptional

    Defaults to the asking price.

  • rent_per_unit_monthlynumber | stringoptional

    Defaults to the market rent fact.

  • unitsintegeroptional

    Defaults to the parcel's units.

Returns 200: DealOut

  • assumptionsobject

    Every assumption used, defaults included.

  • closing_costsMoney

    What the buyer pays at closing besides the down payment.

  • down_paymentMoney
  • engine_versionstring

    The engine that ran: bumped whenever a formula or a default changes.

  • loan_amountMoney
  • priceMoney

    The price the deal was run at: the one given, else the asking price.

  • rent_per_unit_monthlyMoney

    The rent used for a unit: the one given, else the market rent on file.

  • scenariosScenarioOut[]

    live_in, house_hack, hold and value_add, side by side.

  • scoreScoreOut

    The screening score worked out with this deal's figures: income, options and risk, each shown. It is not stored: the parcel's own score comes from its asking price.

  • transfer_tax_at_priceMoney

    The city's transfer tax on a sale at this price. The seller pays it by custom, so it is a cost of selling one day, not of buying.

  • unitsinteger

    The units the deal was run with: the number given, else the parcel's.

GET/v1/parcels/{parcel_id}/facts/{fact_key}/history

Every value a fact of a parcel has had, newest first

What was known about one fact of one parcel, and when: each value with the dataset reading that said it, the day it was true as of, and how it ended (replaced by a newer value, or withdrawn by its source). A fact is never edited or deleted, so nothing here changes except by a new entry at the top. A parcel that never had the fact gives an empty page. Through the public API a value from a dataset we may not pass on is left out, as it is from the parcel's facts. A value it replaced still says `replaced`; the parcel's `withheld_fact_keys` names such a fact.

MCP tool parcels_fact_history

Parameters

  • parcel_idstringin the path · required

    The parcel, by its id (`prc_…`).

  • fact_keystringin the path · required

    The fact's key, as a parcel's `facts` give it: `zoning.district`.

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

Returns 200: a page of FactVersionOut

  • ended_atstring (date-time)can be null

    When it stopped being current. Null while it is.

  • groupstring
  • idfct_… id
  • keystring
  • kindstring
  • labelstring
  • recorded_atstring (date-time)

    When we recorded it.

  • sourceSourceOut

    The dataset reading that said it.

  • statestring

    How it stands, one of: current, replaced, withdrawn. `current` is what is known today; `replaced` gave way to a newer value; `withdrawn` was taken back by its source with nothing in its place.

  • unitstringcan be null
  • valid_fromstring (date)

    The day the value was true as of.

  • valueobject

    What was said.

  • withdrawn_bySourceOutcan be null

    The reading that took it back, when it was withdrawn.

GET/v1/parcels/{parcel_id}/timeline

What happened to a parcel's facts, newest first

Every value a reading stated of the parcel, every one it put in place of another, and every one a source took back, across all its facts, each with the reading that did it. Facts are never edited or deleted, so nothing here changes except by a new entry at the top. `parcels.fact_history` is the same for one fact. Through the public API a value from a dataset we may not pass on is left out, and the value after it reads as a first statement.

MCP tool parcels_timeline

Parameters

  • parcel_idstringin the path · required

    The parcel, by its id (`prc_…`).

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

Returns 200: a page of TimelineEvent

  • atstring (date-time)

    When the reading that did it was taken: when this became known.

  • eventstring

    What happened, one of: stated, changed, withdrawn. `stated`: a first value, or one after the fact had been withdrawn. `changed`: a value in place of another. `withdrawn`: the source stopped stating it, with nothing in its place.

  • fact_idfct_… id

    The value the event is about, as `parcels.fact_history` lists it.

  • groupstring
  • keystring

    The fact's key, as a parcel's `facts` give it.

  • kindstring
  • labelstring
  • previous_valueobject

    For a change, the value this one took the place of. Null otherwise.

  • sourceSourceOut

    The reading that stated the value, or the one that withdrew it.

  • unitstringcan be null
  • valid_fromstring (date)

    The day the value was true as of.

  • valueobject

    The value stated, or, for a withdrawal, the value taken back.

GET/v1/parcels/map

Parcels as GeoJSON points for one map view

Each feature carries what the map's layers draw from: hazards, zoning upside, the best view and the incident trend. Capped; `truncated` says so.

MCP tool parcels_map

Parameters

  • qstringin the query · optional

    Part of an address or a parcel number.

  • neighborhoodstringin the query · optional

    A neighborhood id (`nbh_…`).

  • bboxstringin the query · optional

    west,south,east,north in degrees.

  • typestring[]in the query · optional

    Property types to keep. Repeatable.

  • min_unitsintegerin the query · optional

    At least this many units on the parcel.

  • max_unitsintegerin the query · optional

    At most this many units on the parcel.

  • listedbooleanin the query · optional

    Only parcels with (or without) an active listing.

  • max_pricestringin the query · optional

    An asking price ceiling, e.g. '1500000'.

  • min_scoreintegerin the query · optional

    A screening score of at least this, 0 to 100. A way to sort, not a valuation.

  • rulestring[]in the query · optional

    Keep parcels where a rule has an outcome: '<code>:<outcome>'. Repeatable; all must hold.

  • exclude_hazardstring[]in the query · optional

    Leave out parcels with a hazard: flood, liquefaction, soft_story, landslide. Repeatable.

  • marketstringin the query · optional · default "sf"

    The market key.

Returns 200: MapCollection

  • featuresMapFeature[]
  • truncatedboolean

    True when more parcels matched than one map request returns.

  • typestringcan be null
GET/v1/rules

Every rule the engine runs, with its citation

MCP tool rules_list

Parameters

  • marketstringin the query · optional · default "sf"

    The market key.

Returns 200: a page of RuleCatalogEntry

  • citation_labelstring
  • citation_urlstring
  • codestring
  • effective_fromstring (date)
  • effective_tostring (date)can be null
  • marketstring
  • readsstring[]
  • review_statusstring
  • titlestring
  • versioninteger
GET/v1/rules/{code}

One rule: what it decides, its versions and what it says today

A rule is code with an effective date and a citation. This is what it decides, where it is published, every version it has had, the facts it reads, and how many parcels of its market it currently allows, refuses, flags or cannot decide. A rule result is information, not legal advice: `verify` is the line to show with it.

MCP tool rules_get

Parameters

  • codestringin the path · required

    The rule's code, as a parcel's `rules` give it: `sf.adu.local_program`.

Returns 200: RuleDetail

  • aboutstring

    What the rule decides and what it does not, in a few sentences.

  • citation_labelstring
  • citation_urlstring
  • codestring
  • counts_include_sampleboolean

    True when drawn sample parcels, which describe no real property, are among those counted.

  • marketstring
  • outcomesRuleOutcomeCounts

    How many parcels of the market the newest version gives each outcome today, from the stored results. Counts only.

  • readsRuleFactRead[]

    Every fact the newest version may read. It is refused any other.

  • review_statusstring

    The newest version's: `draft` or `verified`.

  • titlestring
  • verifystring

    The line every verdict carries: information, not advice.

  • versioninteger

    The newest version: the one whose results a parcel shows.

  • versionsRuleVersionOut[]

    Every version, newest first. A version is never edited: a change is a new one.

Shortlists

GET/v1/shortlists

The workspace's shortlists

MCP tool shortlists_list

Returns 200: a page of ShortlistOut

  • created_atstring (date-time)
  • idsht_… id
  • item_countinteger

    How many parcels are on it.

  • namestring
POST/v1/shortlists

Create a shortlist

MCP tool shortlists_create· safe to retry with an Idempotency-Key

Body: ShortlistCreate

  • namestringrequired

    What the workspace calls the list.

Returns 201: ShortlistOut

  • created_atstring (date-time)
  • idsht_… id
  • item_countinteger

    How many parcels are on it.

  • namestring
GET/v1/shortlists/{shortlist_id}

A shortlist and its parcels

MCP tool shortlists_get

Parameters

  • shortlist_idstringin the path · required

    The shortlist, by its id (`sht_…`).

Returns 200: ShortlistDetail

  • created_atstring (date-time)
  • idsht_… id
  • item_countinteger

    How many parcels are on it.

  • itemsShortlistItemOut[]
  • namestring
PATCH/v1/shortlists/{shortlist_id}

Rename a shortlist

MCP tool shortlists_rename

Parameters

  • shortlist_idstringin the path · required

    The shortlist, by its id (`sht_…`).

Body: ShortlistCreate

  • namestringrequired

    What the workspace calls the list.

Returns 200: ShortlistDetail

  • created_atstring (date-time)
  • idsht_… id
  • item_countinteger

    How many parcels are on it.

  • itemsShortlistItemOut[]
  • namestring
DELETE/v1/shortlists/{shortlist_id}

Delete a shortlist

MCP tool shortlists_delete

Parameters

  • shortlist_idstringin the path · required

    The shortlist, by its id (`sht_…`).

Returns 204, with no body

POST/v1/shortlists/{shortlist_id}/items

Add a parcel to a shortlist

A parcel is on a list once: adding it again is refused with `conflict`, so a retry cannot add it twice. Returns the whole list.

MCP tool shortlists_add_item

Parameters

  • shortlist_idstringin the path · required

    The shortlist, by its id (`sht_…`).

Body: ItemAdd

  • notestringoptional

    Free text, kept with the parcel on this list.

  • parcel_idprc_… idrequired

    The parcel to add (`prc_…`).

  • statusstringoptional

    One of watching, touring, offer, passed.

  • strategystringoptional

    What the workspace would do with it: one of live_in, house_hack, hold, develop.

Returns 201: ShortlistDetail

  • created_atstring (date-time)
  • idsht_… id
  • item_countinteger

    How many parcels are on it.

  • itemsShortlistItemOut[]
  • namestring
PATCH/v1/shortlists/{shortlist_id}/items/{parcel_id}

Change a parcel's status, strategy or note

Only what is sent changes. A strategy or a note sent as null is cleared; a status is never empty. Returns the whole list.

MCP tool shortlists_update_item

Parameters

  • shortlist_idstringin the path · required

    The shortlist, by its id (`sht_…`).

  • parcel_idstringin the path · required

    The parcel, by its id (`prc_…`).

Body: ItemUpdate

  • notestringoptional

    Free text, kept with the parcel on this list. Null clears it.

  • statusstringoptional

    One of watching, touring, offer, passed. Left out, it stays as it is.

  • strategystringoptional

    What the workspace would do with it: one of live_in, house_hack, hold, develop. Null clears it.

Returns 200: ShortlistDetail

  • created_atstring (date-time)
  • idsht_… id
  • item_countinteger

    How many parcels are on it.

  • itemsShortlistItemOut[]
  • namestring
DELETE/v1/shortlists/{shortlist_id}/items/{parcel_id}

Take a parcel off a shortlist

MCP tool shortlists_remove_item

Parameters

  • shortlist_idstringin the path · required

    The shortlist, by its id (`sht_…`).

  • parcel_idstringin the path · required

    The parcel, by its id (`prc_…`).

Returns 204, with no body

Scenarios

GET/v1/scenarios

Saved scenarios, newest first

MCP tool scenarios_list

Parameters

  • parcelstringin the query · optional

    Only this parcel's scenarios (`prc_…`).

Returns 200: a page of SavedScenarioOut

  • created_atstring (date-time)
  • engine_versionstring

    The deal engine that produced the result. A newer engine does not rewrite it.

  • idscn_… id
  • inputsobject

    The deal request as it was run.

  • namestring
  • parcel_idprc_… id
  • resultDealOut

    What the deal said when it was saved. It does not change afterwards.

POST/v1/scenarios

Run a deal and keep it

Runs the deal now and keeps its inputs, its result and the engine's version, so the scenario says later what it said today. Running it again with `parcels.deal` may say something else once a rate or a rule changes.

MCP tool scenarios_save· safe to retry with an Idempotency-Key

Body: ScenarioSave

  • dealDealRequestoptional

    The inputs to run and keep.

  • namestringrequired

    What the workspace calls this scenario.

  • parcel_idprc_… idrequired

    The parcel the deal is for (`prc_…`).

Returns 201: SavedScenarioOut

  • created_atstring (date-time)
  • engine_versionstring

    The deal engine that produced the result. A newer engine does not rewrite it.

  • idscn_… id
  • inputsobject

    The deal request as it was run.

  • namestring
  • parcel_idprc_… id
  • resultDealOut

    What the deal said when it was saved. It does not change afterwards.

GET/v1/scenarios/{scenario_id}

A saved scenario

The scenario as it was kept: its inputs and the result it had then. It is read, not run again, so it says the same thing every time.

MCP tool scenarios_get

Parameters

  • scenario_idstringin the path · required

    The saved scenario, by its id (`scn_…`).

Returns 200: SavedScenarioOut

  • created_atstring (date-time)
  • engine_versionstring

    The deal engine that produced the result. A newer engine does not rewrite it.

  • idscn_… id
  • inputsobject

    The deal request as it was run.

  • namestring
  • parcel_idprc_… id
  • resultDealOut

    What the deal said when it was saved. It does not change afterwards.

DELETE/v1/scenarios/{scenario_id}

Delete a saved scenario

MCP tool scenarios_delete

Parameters

  • scenario_idstringin the path · required

    The saved scenario, by its id (`scn_…`).

Returns 204, with no body

Saved searches

GET/v1/saved-searches

The workspace's saved searches

MCP tool saved_searches_list

Returns 200: a page of SavedSearchOut

  • alert_cadence"daily" | "weekly"

    How often the search is looked at for news: `daily` or `weekly`. A weekly search announces, once a week, what newly matches on that day. Changing it keeps what the search has already matched.

  • alert_enabledboolean

    Email the person who saved the search when a parcel newly matches it. Only they can turn it on. Refused where no email can be sent, and for a search that matches more than 2000 parcels.

  • created_atstring (date-time)
  • filtersobject

    The query parameters of a parcel search (`parcels.search`), kept exactly as given.

  • idsrch_… id
  • namestring
POST/v1/saved-searches

Save a search

MCP tool saved_searches_create· safe to retry with an Idempotency-Key

Body: SavedSearchCreate

  • alert_cadence"daily" | "weekly"optional

    How often the search is looked at for news: `daily` or `weekly`. A weekly search announces, once a week, what newly matches on that day. Changing it keeps what the search has already matched.

  • alert_enabledbooleanoptional

    Email the person who saved the search when a parcel newly matches it. Only they can turn it on. Refused where no email can be sent, and for a search that matches more than 2000 parcels.

  • filtersobjectoptional

    The query parameters of a parcel search (`parcels.search`), kept exactly as given.

  • namestringrequired

    What the workspace calls the search.

Returns 201: SavedSearchOut

  • alert_cadence"daily" | "weekly"

    How often the search is looked at for news: `daily` or `weekly`. A weekly search announces, once a week, what newly matches on that day. Changing it keeps what the search has already matched.

  • alert_enabledboolean

    Email the person who saved the search when a parcel newly matches it. Only they can turn it on. Refused where no email can be sent, and for a search that matches more than 2000 parcels.

  • created_atstring (date-time)
  • filtersobject

    The query parameters of a parcel search (`parcels.search`), kept exactly as given.

  • idsrch_… id
  • namestring
GET/v1/saved-searches/{search_id}

A saved search

Its name, its filters and whether its alerts are on. Pass `filters` to `parcels.search` to run it.

MCP tool saved_searches_get

Parameters

  • search_idstringin the path · required

    The saved search, by its id (`srch_…`).

Returns 200: SavedSearchOut

  • alert_cadence"daily" | "weekly"

    How often the search is looked at for news: `daily` or `weekly`. A weekly search announces, once a week, what newly matches on that day. Changing it keeps what the search has already matched.

  • alert_enabledboolean

    Email the person who saved the search when a parcel newly matches it. Only they can turn it on. Refused where no email can be sent, and for a search that matches more than 2000 parcels.

  • created_atstring (date-time)
  • filtersobject

    The query parameters of a parcel search (`parcels.search`), kept exactly as given.

  • idsrch_… id
  • namestring
PATCH/v1/saved-searches/{search_id}

Change a saved search

Only what is sent changes. Changing the filters of a watched search, or turning its alerts on, starts its memory over: the parcels that match at that moment are not news.

MCP tool saved_searches_update

Parameters

  • search_idstringin the path · required

    The saved search, by its id (`srch_…`).

Body: SavedSearchUpdate

  • alert_cadence"daily" | "weekly"optional

    How often the search is looked at for news: `daily` or `weekly`. A weekly search announces, once a week, what newly matches on that day. Changing it keeps what the search has already matched.

  • alert_enabledbooleanoptional

    Email the person who saved the search when a parcel newly matches it. Only they can turn it on. Refused where no email can be sent, and for a search that matches more than 2000 parcels.

  • filtersobjectoptional

    The query parameters of a parcel search (`parcels.search`), kept exactly as given. Replaces the whole set.

  • namestringoptional

    A new name. Left out, it stays.

Returns 200: SavedSearchOut

  • alert_cadence"daily" | "weekly"

    How often the search is looked at for news: `daily` or `weekly`. A weekly search announces, once a week, what newly matches on that day. Changing it keeps what the search has already matched.

  • alert_enabledboolean

    Email the person who saved the search when a parcel newly matches it. Only they can turn it on. Refused where no email can be sent, and for a search that matches more than 2000 parcels.

  • created_atstring (date-time)
  • filtersobject

    The query parameters of a parcel search (`parcels.search`), kept exactly as given.

  • idsrch_… id
  • namestring
DELETE/v1/saved-searches/{search_id}

Delete a saved search

MCP tool saved_searches_delete

Parameters

  • search_idstringin the path · required

    The saved search, by its id (`srch_…`).

Returns 204, with no body

Change feed

GET/v1/changes

What changed in this workspace, oldest first

Changes to the workspace's shortlists, saved scenarios and saved searches, in the order they were committed. Read it to the end, keep `next_cursor`, and come back with it: nothing is skipped and nothing is given twice. Entries are kept 30 days; a reader away for longer lists the records again and starts over from the feed's end.

MCP tool changes_list

Parameters

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

  • kindstring[]in the query · optional

    Only these kinds of change. Repeatable.

Returns 200: a page of ChangeOut

  • created_atstring (date-time)
  • dataobject

    Ids of the other records involved, such as the `parcel_id` of a shortlist item. Never their contents.

  • idchg_… id
  • kindstring

    What happened, as `<resource>.<event>`. One of: shortlist.created, shortlist.updated, shortlist.deleted, shortlist.item_added, shortlist.item_updated, shortlist.item_removed, shortlist.parcel_changed, scenario.saved, scenario.deleted, saved_search.created, saved_search.updated, saved_search.deleted.

  • resource_idstring

    That record's id, to fetch it with (`shortlists.get`, `scenarios.get`, `saved_searches.get`). After a `.deleted` change it is no longer there.

  • resource_typestring

    The kind of record that changed: shortlist, scenario, saved_search.

Webhooks

GET/v1/webhooks

The workspace's webhook endpoints

MCP tool webhooks_list

Returns 200: a page of WebhookOut

  • created_atstring (date-time)
  • descriptionstringcan be null
  • disabled_reasonstringcan be null

    Why we turned it off, when we did: `repeated_failures` after 5 deliveries in a row were given up on.

  • enabledboolean
  • idwhk_… id
  • kindsstring[]

    The kinds of change sent. Empty means every kind.

  • updated_atstring (date-time)
  • urlstring
POST/v1/webhooks

Add a webhook endpoint

From now on, each change to the workspace's shortlists, saved scenarios and saved searches is posted to `url` as one change-feed entry, signed with the `secret` this returns. The secret is not shown again.

MCP tool webhooks_create· safe to retry with an Idempotency-Key

Body: WebhookCreate

  • descriptionstringoptional

    A note for whoever reads the list.

  • kindsstring[]optional

    The kinds of change to send. Empty means every kind. Each is one of: shortlist.created, shortlist.updated, shortlist.deleted, shortlist.item_added, shortlist.item_updated, shortlist.item_removed, shortlist.parcel_changed, scenario.saved, scenario.deleted, saved_search.created, saved_search.updated, saved_search.deleted.

  • urlstringrequired

    Where to post: an https:// address on the public internet, with no username, password or #fragment.

Returns 201: WebhookCreated

  • created_atstring (date-time)
  • descriptionstringcan be null
  • disabled_reasonstringcan be null

    Why we turned it off, when we did: `repeated_failures` after 5 deliveries in a row were given up on.

  • enabledboolean
  • idwhk_… id
  • kindsstring[]

    The kinds of change sent. Empty means every kind.

  • secretstring

    What deliveries are signed with (`Paella-Signature`). Shown once: keep it now.

  • updated_atstring (date-time)
  • urlstring
GET/v1/webhooks/{webhook_id}

A webhook endpoint

MCP tool webhooks_get

Parameters

  • webhook_idstringin the path · required

    The webhook endpoint, by its id (`whk_…`).

Returns 200: WebhookOut

  • created_atstring (date-time)
  • descriptionstringcan be null
  • disabled_reasonstringcan be null

    Why we turned it off, when we did: `repeated_failures` after 5 deliveries in a row were given up on.

  • enabledboolean
  • idwhk_… id
  • kindsstring[]

    The kinds of change sent. Empty means every kind.

  • updated_atstring (date-time)
  • urlstring
PATCH/v1/webhooks/{webhook_id}

Change a webhook endpoint

Only what is sent changes. The secret stays: `webhooks.rotate_secret` replaces it.

MCP tool webhooks_update

Parameters

  • webhook_idstringin the path · required

    The webhook endpoint, by its id (`whk_…`).

Body: WebhookUpdate

  • descriptionstringoptional

    A note for whoever reads the list.

  • enabledbooleanoptional

    Turn deliveries off, or back on. Turning an endpoint we turned off back on starts its count of failures over.

  • kindsstring[]optional

    The kinds of change to send. Empty means every kind. Each is one of: shortlist.created, shortlist.updated, shortlist.deleted, shortlist.item_added, shortlist.item_updated, shortlist.item_removed, shortlist.parcel_changed, scenario.saved, scenario.deleted, saved_search.created, saved_search.updated, saved_search.deleted.

  • urlstringoptional

    Where to post: an https:// address on the public internet, with no username, password or #fragment.

Returns 200: WebhookOut

  • created_atstring (date-time)
  • descriptionstringcan be null
  • disabled_reasonstringcan be null

    Why we turned it off, when we did: `repeated_failures` after 5 deliveries in a row were given up on.

  • enabledboolean
  • idwhk_… id
  • kindsstring[]

    The kinds of change sent. Empty means every kind.

  • updated_atstring (date-time)
  • urlstring
DELETE/v1/webhooks/{webhook_id}

Remove a webhook endpoint

Nothing more is posted to it, and what was still owed to it is dropped.

MCP tool webhooks_delete

Parameters

  • webhook_idstringin the path · required

    The webhook endpoint, by its id (`whk_…`).

Returns 204, with no body

GET/v1/webhooks/{webhook_id}/deliveries

What was posted to an endpoint, newest first

Each change owed to the endpoint and how its delivery went: for finding out why something did not arrive. Kept two weeks after it is settled.

MCP tool webhooks_deliveries

Parameters

  • webhook_idstringin the path · required

    The webhook endpoint, by its id (`whk_…`).

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

Returns 200: a page of DeliveryOut

  • attemptsinteger
  • change_idchg_… id
  • created_atstring (date-time)
  • delivered_atstring (date-time)can be null
  • idwhd_… id
  • kindstring

    The kind of the change that was sent.

  • last_errorstringcan be null
  • last_tried_atstring (date-time)can be null
  • response_statusintegercan be null

    What the endpoint answered on the last try, if it answered.

  • statusstring

    pending, delivered or failed.

POST/v1/webhooks/{webhook_id}/ping

Post a test delivery now

Posts one signed delivery of kind `webhook.ping` to the endpoint, waits for its answer (up to ten seconds) and says how it went. It has a change's shape, so a receiver handles it with the code it already has, but it is not a change: it is not in the feed and leaves nothing in the endpoint's deliveries. An endpoint that is turned off is pinged all the same.

MCP tool webhooks_ping

Parameters

  • webhook_idstringin the path · required

    The webhook endpoint, by its id (`whk_…`).

Returns 200: PingOut

  • deliveredboolean

    Whether the endpoint answered with a 2xx.

  • errorstringcan be null

    Why it did not arrive, when it did not.

  • response_statusintegercan be null

    What it answered, if it answered.

POST/v1/webhooks/{webhook_id}/rotate-secret

Replace an endpoint's signing secret

Makes a new secret and returns it, once. The old one stops at that moment: every delivery from then on, a retry of an earlier one included, is signed with the new secret, so a receiver still checking with the old one refuses them until it is given the new. There is no overlap. Put the new secret in the receiver straight away; what it refuses in between is retried for about an hour and stays in the change feed. Calling this again makes another secret and ends this one.

MCP tool webhooks_rotate_secret

Parameters

  • webhook_idstringin the path · required

    The webhook endpoint, by its id (`whk_…`).

Returns 200: WebhookCreated

  • created_atstring (date-time)
  • descriptionstringcan be null
  • disabled_reasonstringcan be null

    Why we turned it off, when we did: `repeated_failures` after 5 deliveries in a row were given up on.

  • enabledboolean
  • idwhk_… id
  • kindsstring[]

    The kinds of change sent. Empty means every kind.

  • secretstring

    What deliveries are signed with (`Paella-Signature`). Shown once: keep it now.

  • updated_atstring (date-time)
  • urlstring

Usage

GET/v1/usage

Requests by day, key, operation and outcome

Every counter the workspace has for the days asked for, newest day first. Each `/v1` request and each MCP tool call adds one to a counter once it is answered. Days are UTC. Counts are kept 400 days.

MCP tool usage_daily

Parameters

  • fromstring (date)in the query · optional

    The first day to include (UTC). Default: 30 days ago.

  • tostring (date)in the query · optional

    The last day to include (UTC). Default: today.

  • api_keystringin the query · optional

    Only this key's requests (`key_…`).

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

Returns 200: a page of UsageDay

  • api_key_idkey_… idcan be null

    The key that asked. Null for signed-in people using the API without a key.

  • daystring (date)

    The day, in UTC.

  • operationstring

    The operation, by its id in the reference: `parcels.search`.

  • outcomestring

    How the requests ended: ok, client_error, rate_limited, server_error.

  • requestsinteger

    How many.

  • surfacestring

    How it was asked: api, mcp (an MCP tool).

GET/v1/usage/summary

Requests today and this month, by key

How much each key has asked today and since the first of the month (UTC), and the workspace's totals. What the API keys screen shows.

MCP tool usage_summary

Returns 200: UsageSummary

  • by_keyKeyUsage[]

    The same counts for each caller that asked anything this month, busiest first.

  • month_startstring (date)

    The first day of the month the monthly counts start from.

  • requests_monthinteger
  • requests_todayinteger
  • todaystring (date)

    Today, in UTC: the day the counts turn over by.

Audit log

GET/v1/audit

Who did what in this workspace

MCP tool audit_list

Parameters

  • limitintegerin the query · optional · default 50

    Page size, 1–200.

  • cursorstringin the query · optional

    The `next_cursor` of the previous page.

Returns 200: a page of AuditEventOut

  • actionstring

    What happened, as `<thing>.<verb>`: `member.invited`, `shortlist.created`.

  • actor_emailstringcan be null
  • actor_kindstring

    Who did it: user, api_key or system.

  • actor_user_idusr_… idcan be null

    The person, or the person whose key it was.

  • created_atstring (date-time)
  • detailobject

    What changed, in the event's own terms.

  • idevt_… id
  • target_idstringcan be null

    That record's id.

  • target_typestringcan be null

    The kind of record it was done to, by its table's name.