{
  "openapi": "3.1.0",
  "info": {
    "title": "apidata.one API",
    "version": "0.9.0-m9",
    "description": "Real-estate listing data for Bright MLS's region (DE, MD, NJ, PA, VA, WV and DC), for the websites of Bright's member brokers and agents.\n\nOne host serves the live data and the sandbox: the key picks the environment (`_test_` keys reach the sandbox, `_live_` keys real listings), never the URL.\n\nEvery answer is JSON: `{ data, meta }` on success, with `compliance` and `warnings` beside listing content, and `{ error }` otherwise. Decide by `error.code`, never by the message. The API itself never answers 502, 503 or 504: `data_stale` and `temporarily_unavailable` are sent as 500 with a `Retry-After` header.\n\nEach operation carries `x-apidata`: which keys may call it, the plan it needs, the environment, whether it acts for one consumer, and whether it works while an account is suspended or live data is stopped. `x-apidata-errors` lists, by status, the error codes the operation can answer.",
    "contact": {
      "name": "apidata.one support",
      "email": "support@apidata.one"
    },
    "termsOfService": "https://apidata.one/terms/"
  },
  "servers": [
    {
      "url": "https://api.apidata.one",
      "description": "Live and sandbox: the key picks the environment"
    }
  ],
  "externalDocs": {
    "description": "The docs",
    "url": "https://docs.apidata.one/"
  },
  "tags": [
    {
      "name": "Listings",
      "description": "Search, the map, a listing in full, and the list of listing keys."
    },
    {
      "name": "Search box",
      "description": "Suggestions as a visitor types."
    },
    {
      "name": "Places",
      "description": "The named areas listings belong to."
    },
    {
      "name": "Consumers",
      "description": "A visitor of your site: a token that lets a browser act for them, and deleting what is stored for them."
    },
    {
      "name": "Favorites",
      "description": "The listings a consumer saved."
    },
    {
      "name": "Saved searches",
      "description": "A consumer's searches, kept so that your site can tell them of new matches."
    },
    {
      "name": "Saved shapes",
      "description": "Shapes a consumer drew and kept. Premium."
    },
    {
      "name": "Webhooks and notices",
      "description": "Where your account's notices are sent, and the list to read them from."
    },
    {
      "name": "Account",
      "description": "Your account, the disclosure texts, the lists of values, and the service status."
    },
    {
      "name": "Sandbox",
      "description": "Making a change happen on demand, with a test key."
    }
  ],
  "paths": {
    "/v1/listings": {
      "get": {
        "operationId": "searchListings",
        "summary": "Search listings, with the filters as query keys",
        "description": "One search schema, two forms. `POST /v1/listings/search` takes it as a JSON body; `GET\n/v1/listings` takes it flattened into query keys (one request, cacheable, linkable):\n\n| Body                                              | Query                                                    |\n| ------------------------------------------------- | -------------------------------------------------------- |\n| `{ \"price\": { \"min\": 300000, \"max\": 450000 } }`   | `price.min=300000&price.max=450000`                      |\n| `{ \"status\": [\"active\", \"pending\"] }`             | `status=active,pending`                                  |\n| `{ \"location\": { \"placeIds\": [\"pl_a\", \"pl_b\"] } }`| `location.placeIds=pl_a,pl_b`                            |\n| `{ \"location\": { \"bbox\": [-75.42, 40.00, -75.30, 40.08] } }` | `location.bbox=-75.42,40.00,-75.30,40.08`      |\n| `{ \"location\": { \"cities\": [{ \"name\": \"Bryn Mawr\", \"state\": \"PA\" }] } }` | `location.cities=Bryn Mawr\\|PA`     |\n| `{ \"location\": { \"radius\": { \"center\": [-75.3, 40.01], \"meters\": 1609 } } }` | `location.radius.center=-75.3,40.01&location.radius.meters=1609` |\n| `{ \"hasPool\": true }`                             | `hasPool=true`                                           |\n\nDotted keys build nested objects, commas separate list items, and cities and subdivisions are\n`Name|ST` items. A key outside the schema is `400 validation_failed` naming it, in both forms;\nevery problem in a request is reported at once in `fields`. `location.shape` (a drawn shape)\nexists in the body form only.\n\n### Filters\n\nEach filter is described where it is listed: as a query key on the page of `GET /v1/listings`,\nand as a field of the body under [SearchRequest](https://docs.apidata.one/reference/objects/#searchrequest). Every filter is\noptional, and they combine with AND.\n\n`location.schoolIds` is not available: search by individual school waits for attendance-zone\ndata. It is `403 tier_insufficient` on Basic and `400 validation_failed` on Premium. Search a\n**school district** with its place ID in `location.placeIds` (Premium).\n\nA Premium field sent with a key on a Basic account is `403 tier_insufficient` with\n`capability` (`shapes` or `schools`), before anything else in the request is judged; it is\nnever ignored. `location.schoolDistrictIds` no longer exists (a school district is a place):\nit is `400 validation_failed` as an unknown key.\n\nLocation kinds combine with AND. Spatial kinds (`bbox`, `radius`, a drawn or saved shape, a\ncommunity place, the map) match listings with a shown address and a point inside the seven\njurisdictions only, so a hidden-address listing is found through its city, ZIP, subdivision or\nplace memberships, never through a shape. Filters that mean nothing for some classes (beds and baths for land and\ncommercial listings, living area for land) apply only where they mean something; those\nlistings stay in the results and the response carries the warning `filter_not_applicable`.\n\nThat warning is about the search, not about the page you got. It comes whenever `beds`,\n`baths` or `livingAreaSqft` is sent and the search could return a class the filter means\nnothing for, even when every listing on this page is a house. Its `message` names those\nclasses and its `fix` says how to leave them out: add a `propertyClass` filter with the\nclasses you want, such as `propertyClass=residential`. With that, the filter applies to\neverything the search can return, and no warning comes. A site that searches homes only\nshould send `propertyClass` on every search; one that shows land and commercial listings\nbeside homes can ignore the warning.\n\n### Newest first\n\n`sort=newest` orders every listing by its **latest status change**, newest first: a new\nlisting, one back on the market, a move under contract or a close. A listing back on the\nmarket counts as new again.\n\n- Every status is in the one timeline. A Coming Soon listing sorts by its status change like\n  any other, not by its expected on-market date.\n- A listing whose days on market Bright hides sorts like the rest. A sort shows an order,\n  never a date or a count: such a listing still has no `daysOnMarket`.\n- Listings that changed at the same moment come in a fixed order, and a listing with no\n  status change comes last.\n- The sandbox sorts the same way as live.\n\n### Prices Bright hides\n\nWhen Bright flags a listing's prices as not for display, its price fields are null, it can't\nmatch a price filter, and price sorts put it last in both directions. Likewise a listing with\nhidden price history has no `priceHistory`, and one with hidden days-on-site has no\n`daysOnMarket` or on-market dates.\n\n### Response\n\n```json\n{\n  \"data\": [ { \"listingKey\": \"805454359664\", \"…\": \"a ListingSummary\" } ],\n  \"meta\": {\n    \"requestId\": \"req_…\",\n    \"page\": { \"limit\": 24, \"nextCursor\": \"c_…\", \"total\": 1234, \"totalIsCapped\": false },\n    \"dataLastUpdatedAt\": \"2026-11-10T14:59:00.000Z\",\n    \"environment\": \"live\"\n  },\n  \"compliance\": { \"…\": \"the compliance block\" },\n  \"warnings\": [ { \"code\": \"close_date_clamped\", \"message\": \"…\", \"fix\": \"…\" } ]\n}\n```\n\n`total` is exact up to 10,000 and `totalIsCapped` says when it stopped counting. Pages are\nread with `cursor` (opaque, signed, bound to the filters and the sort: a cursor sent with other\nfilters or another sort, or altered, is `400 validation_failed` on `cursor`). A search can page\nthrough at most 10,000 results: the cursor that would start past that answers\n`400 pagination_limit_reached`; narrow the filters or sort differently. `nextCursor` is null on\nthe last page.\n\nIf the meaning of a sort ever changes, cursors made before the change are refused the same way\n(`400 validation_failed` on `cursor`): start again from the first page.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "pagination_limit_reached",
            "shape_invalid",
            "shape_too_large",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/search.status"
          },
          {
            "$ref": "#/components/parameters/search.propertyClass"
          },
          {
            "$ref": "#/components/parameters/search.structureType"
          },
          {
            "$ref": "#/components/parameters/search.price.min"
          },
          {
            "$ref": "#/components/parameters/search.price.max"
          },
          {
            "$ref": "#/components/parameters/search.beds.min"
          },
          {
            "$ref": "#/components/parameters/search.beds.max"
          },
          {
            "$ref": "#/components/parameters/search.baths.min"
          },
          {
            "$ref": "#/components/parameters/search.baths.max"
          },
          {
            "$ref": "#/components/parameters/search.livingAreaSqft.min"
          },
          {
            "$ref": "#/components/parameters/search.livingAreaSqft.max"
          },
          {
            "$ref": "#/components/parameters/search.lotSizeAcres.min"
          },
          {
            "$ref": "#/components/parameters/search.lotSizeAcres.max"
          },
          {
            "$ref": "#/components/parameters/search.yearBuilt.min"
          },
          {
            "$ref": "#/components/parameters/search.yearBuilt.max"
          },
          {
            "$ref": "#/components/parameters/search.closeDate.from"
          },
          {
            "$ref": "#/components/parameters/search.closeDate.to"
          },
          {
            "$ref": "#/components/parameters/search.keywords"
          },
          {
            "$ref": "#/components/parameters/search.location.placeIds"
          },
          {
            "$ref": "#/components/parameters/search.location.postalCodes"
          },
          {
            "$ref": "#/components/parameters/search.location.cities"
          },
          {
            "$ref": "#/components/parameters/search.location.subdivisions"
          },
          {
            "$ref": "#/components/parameters/search.location.bbox"
          },
          {
            "$ref": "#/components/parameters/search.location.radius.center"
          },
          {
            "$ref": "#/components/parameters/search.location.radius.meters"
          },
          {
            "$ref": "#/components/parameters/search.location.shapeId"
          },
          {
            "$ref": "#/components/parameters/search.listAgentMlsId"
          },
          {
            "$ref": "#/components/parameters/search.listOfficeMlsId"
          },
          {
            "$ref": "#/components/parameters/search.openHouse.from"
          },
          {
            "$ref": "#/components/parameters/search.openHouse.to"
          },
          {
            "$ref": "#/components/parameters/search.modifiedSince"
          },
          {
            "$ref": "#/components/parameters/search.hasBasement"
          },
          {
            "$ref": "#/components/parameters/search.hasFireplace"
          },
          {
            "$ref": "#/components/parameters/search.hasPool"
          },
          {
            "$ref": "#/components/parameters/search.seniorCommunity"
          },
          {
            "$ref": "#/components/parameters/search.petsAllowed"
          },
          {
            "$ref": "#/components/parameters/search.newConstruction"
          },
          {
            "$ref": "#/components/parameters/search.waterfront"
          },
          {
            "$ref": "#/components/parameters/search.garage"
          },
          {
            "$ref": "#/components/parameters/search.sort"
          },
          {
            "$ref": "#/components/parameters/search.limit"
          },
          {
            "$ref": "#/components/parameters/search.cursor"
          },
          {
            "$ref": "#/components/parameters/ClientTokenOptional"
          },
          {
            "$ref": "#/components/parameters/ClientIdOptional"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of listings, with the count, the disclosures and any warnings",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ListingSummary"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "page": {
                          "$ref": "#/components/schemas/SearchPage"
                        },
                        "dataLastUpdatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "When the data was last updated from Bright."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "page",
                        "dataLastUpdatedAt",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "compliance": {
                      "$ref": "#/components/schemas/Compliance"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "compliance",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, pagination_limit_reached, shape_invalid, shape_too_large, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/listings/{listingKey}": {
      "get": {
        "operationId": "getListing",
        "summary": "One listing, in full",
        "description": "The detail is [the listing object](https://docs.apidata.one/reference/listings/#the-listing-object) plus these. Each is\nlisted with its type under [ListingDetail](https://docs.apidata.one/reference/objects/#listingdetail); this table says more\nabout when a field is filled:\n\n| Field              | Content                                                                                   |\n| ------------------ | ----------------------------------------------------------------------------------------- |\n| `remarks`          | the public remarks                                                                        |\n| `directions`, `taxId` | only when the address is shown |\n| `virtualTourUrl`   | the listing's tour link exactly as Bright sent it, with `https://` in front only when it had no scheme (a value that names no website is `null`). Shown for a withheld address too; `null` for Coming Soon and under the off-market hide |\n| `media`           | `{ links: [{ mediaKey, kind, url, order, caption }] }`: the listing's virtual tours and videos as links, in display order. `kind` is `tour`, `video` or `other` (a link Bright filed as a photo that is neither, such as a document share). Each `url` is Bright's, unaltered except for `https://` added where it had no scheme; an `http://` link stays `http://`. Never in `photos` or its count; `[]` for Coming Soon and under the off-market hide. A listing whose address is withheld shows its links like any other |\n| `features`         | an object of Bright's fields in lowerCamelCase, the `YN` suffix kept (`basementYN`, `basement`, `heating`, `interiorFeatures`, `taxAnnualAmount`, …): booleans, numbers and arrays of display strings; empty values are left out |\n| `rooms`            | `[{ type, level, length, width, area, dimensions, features, description, order }]` in display order, for on-market listings (`[]` when the listing has none). `null` with the warning `rooms_stale` and `details.syncedAt` (the set's last complete pull, or `null`) when the set was never pulled or its refresh is more than 12 hours overdue: an old set is never served. A listing that isn't on the market has `rooms: null` with no warning |\n| `openHouses`       | `[{ id, date, startTime, endTime, method, virtualUrl, remarks }]`, public open houses that haven't ended; `method` is `in_person`, `virtual` or `in_person_and_virtual`; `[]` with the warning `open_houses_stale` while the open-house feed is more than 12 hours old |\n| `places`           | `[{ placeId, kind, displayName }]` the listing belongs to; names only, never geometry; school districts on Premium only |\n| `schools`          | **Premium only** (a Basic detail has no such key): the object [`GET /v1/listings/{listingKey}/schools`](https://docs.apidata.one/reference/endpoints/get-listing-schools/) serves, without its `listingKey` |\n| `priceHistory`     | `[{ date, price, kind }]` (`kind` is `list` or `close`): dated events only. `date` is a calendar date, `YYYY-MM-DD`, in Eastern time (America/New_York), never a timestamp. A `list` entry is a list price on the Eastern date it took effect; the `close` entry is the close price on the close date, equal to `closeDate`, and only a Closed listing has one. Oldest first; on one date, `list` entries come before the `close` entry and keep the order they happened in. A listing whose record shows no dated price change has no `list` entry (`[]` when it also isn't closed): its current price is `price.list`. Nothing from a Coming Soon period is included, and no list price dated from the close on (a later day than the close date, or at or after the change that recorded the listing as closed). A listing that was closed and is back on the market has no `close` entry, and the list prices it gets from then on are shown. Absent for Coming Soon and when Bright hides the history |\n| `listingIdHistory` | `[{ mlsNumber, firstSeenAt, lastSeenAt }]`: MLS numbers the listing has carried            |\n| `photos.items`     | every gallery photo in order: `{ mediaKey, order, caption, urls }`, Bright's five sizes on its media host over https |\n\nThe path value is the `listingKey`. To look a listing up by its MLS number, current or past,\nsend `?mlsNumber=true` with the number in the path, or `?mlsNumber=<number>`. A listing that\nisn't served (unknown, left the feed, or kept from display) is `404 listing_not_found`.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "listing_not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "listingKey",
            "in": "path",
            "required": true,
            "description": "The listing's key. With ?mlsNumber=true, an MLS number, current or past, in its place.",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "example": "805454359664"
          },
          {
            "name": "mlsNumber",
            "in": "query",
            "required": false,
            "description": "To look a listing up by an MLS number, current or past: \"true\", with the number in the path; or the number itself.",
            "schema": {
              "type": "string"
            },
            "example": "true"
          },
          {
            "$ref": "#/components/parameters/ClientTokenOptional"
          },
          {
            "$ref": "#/components/parameters/ClientIdOptional"
          }
        ],
        "responses": {
          "200": {
            "description": "The listing, with the disclosures and any warnings",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ListingDetail"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "dataLastUpdatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "When the data was last updated from Bright."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "dataLastUpdatedAt",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "compliance": {
                      "$ref": "#/components/schemas/Compliance"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "compliance",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "listing_not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/listings/{listingKey}/schools": {
      "get": {
        "operationId": "getListingSchools",
        "summary": "A listing's school district, and the schools its agent entered",
        "description": "**Premium only** (`403 tier_insufficient` with `capability: \"schools\"` on Basic).\n\n```json\n{\n  \"data\": {\n    \"listingKey\": \"805454359664\",\n    \"district\": { \"placeId\": \"pl_…\", \"displayName\": \"Lower Merion School District, PA\", \"districtType\": \"unified\", \"grades\": \"KG-12\" },\n    \"districts\": [ { \"placeId\": \"pl_…\", \"displayName\": \"Lower Merion School District, PA\", \"districtType\": \"unified\", \"grades\": \"KG-12\" } ],\n    \"assigned\": [\n      { \"level\": \"elementary\", \"name\": \"PENN VALLEY\", \"source\": \"listing\" },\n      { \"level\": \"middle_or_junior\", \"name\": \"WELSH VALLEY\", \"source\": \"listing\" },\n      { \"level\": \"high\", \"name\": \"HARRITON\", \"source\": \"listing\" }\n    ],\n    \"asOf\": \"2026-11-09T18:30:00.000Z\",\n    \"notice\": \"School assignments are subject to change; verify with the school district.\"\n  },\n  \"meta\": { \"…\": \"as for the detail\" },\n  \"compliance\": { \"…\": \"the compliance block\" },\n  \"warnings\": []\n}\n```\n\n- `district` is the school district the listing lies in, as a place: search it with its\n  `placeId` in `location.placeIds`, and read more about it with `GET /v1/places/{placeId}`.\n  `null` when the listing lies in no district. Where a listing lies in two (an elementary and a\n  secondary district, as in parts of New Jersey), `districts` lists both and `district` is the\n  first of them: a unified district before an elementary one before a secondary one.\n- `assigned` is what the listing's agent entered, as Bright sends it: up to one school per\n  level, in the order `elementary`, `middle_or_junior`, `high`. `source` is `listing`: the\n  names come from the listing, not from a school authority. Empty when the agent entered none\n  (most listings name no school).\n- `asOf` is the listing's `updatedAt`.\n- A listing whose address is withheld has the same object; its district comes from the\n  district the listing itself names, never from a point.\n- The listing's own rules apply: `500 data_stale` during the 12-hour stop, and\n  `404 listing_not_found` for a listing that isn't served.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "Premium",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "listing_not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "listingKey",
            "in": "path",
            "required": true,
            "description": "The listing's key. With ?mlsNumber=true, an MLS number, current or past, in its place.",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "example": "805454359664"
          },
          {
            "$ref": "#/components/parameters/ClientTokenOptional"
          },
          {
            "$ref": "#/components/parameters/ClientIdOptional"
          }
        ],
        "responses": {
          "200": {
            "description": "The listing's schools",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ListingSchoolsAnswer"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "dataLastUpdatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "When the data was last updated from Bright."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "dataLastUpdatedAt",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "compliance": {
                      "$ref": "#/components/schemas/Compliance"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "compliance",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "listing_not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/listings/{listingKey}/similar": {
      "get": {
        "operationId": "getSimilarListings",
        "summary": "Listings like this one: same city and class, near its price and size",
        "description": "Up to `limit` (1 to 10, default 3) listings in the same city and property class, with the same\non-market or closed status, within ±10% of the subject's price and living area, nearest price\nfirst. A subject with no shown price or no living area is matched without that range, with\nthe warning `filter_not_applicable`.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "listing_not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "listingKey",
            "in": "path",
            "required": true,
            "description": "The listing's key. With ?mlsNumber=true, an MLS number, current or past, in its place.",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "example": "805454359664"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many: 1 to 10. 3 when left out.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 3
            }
          },
          {
            "$ref": "#/components/parameters/ClientTokenOptional"
          },
          {
            "$ref": "#/components/parameters/ClientIdOptional"
          }
        ],
        "responses": {
          "200": {
            "description": "The similar listings, nearest price first",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ListingSummary"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "dataLastUpdatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "When the data was last updated from Bright."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "dataLastUpdatedAt",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "compliance": {
                      "$ref": "#/components/schemas/Compliance"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "compliance",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "listing_not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/listings/keys": {
      "get": {
        "operationId": "listListingKeys",
        "summary": "Every served listing's key and last change time, for a sitemap",
        "description": "The key list, for a sitemap: every listing the API serves, by its `listingKey`, with the time\nit last changed. Call it from your server, on a schedule.\n\n```json\n{\n  \"data\": [\n    { \"listingKey\": \"301234567890\", \"updatedAt\": \"2026-11-28T14:02:11.000Z\" },\n    { \"listingKey\": \"301234567891\", \"updatedAt\": \"2026-10-03T09:15:40.000Z\" }\n  ],\n  \"meta\": {\n    \"requestId\": \"req_…\",\n    \"environment\": \"live\",\n    \"page\": { \"limit\": 1000, \"nextCursor\": \"c_…\" }\n  }\n}\n```\n\n- **What is in it** is exactly what `GET /v1/listings/{listingKey}` answers `200` for, in\n  `listingKey` order. A listing whose address is hidden is in it (its detail is served,\n  without the address). A listing that left the feed, or is kept from display, is not: its\n  detail is `404 listing_not_found`.\n- **`updatedAt`** is the listing's own `updatedAt`, as its detail gives it. Use it as your\n  sitemap's `lastmod`, and to decide which of your pages to refresh.\n- **Keys and times, and nothing else.** No address, no price, no count of the whole list:\n  page until `nextCursor` is `null`.\n- **A cursor belongs to the list it came from.** With another `status` filter, or on a search,\n  it is `400 validation_failed`. Start again from the first page.\n- **A key that was on your last list and is not on this one** has left the feed: remove its\n  page and answer `410 Gone` for it. Don't keep a copy of a listing the API no longer serves.\n  ([`listing.removed`](https://docs.apidata.one/concepts/webhooks/) notices tell you the same sooner.)\n- **Its own rate limit:** one request every 2 seconds for a key, with bursts of 5, on top of\n  the key's usual limit ([rate limits](https://docs.apidata.one/concepts/rate-limits/#the-key-list)). At 5,000 keys\n  a page a full list of a million keys is about 210 requests, and takes a few minutes. Past\n  the limit: `429 rate_limited` with `Retry-After`.\n- Like every listing route, it answers `500 data_stale` while live data is over 12 hours old.\n\nBuild your pages' addresses from the `listingKey` alone, never from an address.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Keys a page: 1 to 5,000. 1,000 when left out.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 1000
            },
            "example": 5000
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The nextCursor of the page before, exactly as it came. Left out for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only listings of these statuses, separated by commas: active, active_under_contract, coming_soon, pending, closed. Left out: every listing the API serves.",
            "schema": {
              "type": "string"
            },
            "example": "active,pending"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of keys, in key order",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "description": "Of whichever bucket has the fewest requests left: this route's own, or the key's.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "listingKey": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                            "description": "The listing's own updatedAt: your sitemap's lastmod."
                          }
                        },
                        "required": [
                          "listingKey",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "page": {
                          "$ref": "#/components/schemas/CursorPage"
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "page",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/listings/map": {
      "get": {
        "operationId": "mapListings",
        "summary": "Pins and clusters for a map, with the filters as query keys",
        "description": "The same filters as the search (paging and sort keys are ignored), for a map. `GET` takes them\nas query keys, `POST` as the JSON body of the search schema, so a drawn `location.shape`\n(Premium) can drive the map; for the same query the two answer exactly alike. With 500 or\nfewer matching located listings:\n\n```json\n{ \"data\": { \"total\": 3, \"pins\": [ { \"listingKey\": \"…\", \"lat\": 40.01, \"lng\": -75.3, \"price\": 400000, \"status\": \"active\" } ], \"clusters\": [] } }\n```\n\nAbove 500, clusters on a world-aligned grid (a power-of-two fraction of a degree, at most 16\ncells across the request's `bbox`; without one, across the shape's bounding box when the\nrequest has a drawn or saved shape, else across the whole region):\n\n```json\n{ \"data\": { \"total\": 600, \"pins\": [], \"clusters\": [ { \"lat\": 40.4, \"lng\": -75.8, \"count\": 37, \"bbox\": [-75.81, 40.39, -75.79, 40.41] } ], \"gridCellDegrees\": 0.0220 } }\n```\n\nOnly listings with a shown address and a point inside the seven jurisdictions appear or are\ncounted. A hidden price is a null pin price. Zoom in (a smaller `bbox`) to turn clusters into\npins.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "shape_invalid",
            "shape_too_large",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/search.status"
          },
          {
            "$ref": "#/components/parameters/search.propertyClass"
          },
          {
            "$ref": "#/components/parameters/search.structureType"
          },
          {
            "$ref": "#/components/parameters/search.price.min"
          },
          {
            "$ref": "#/components/parameters/search.price.max"
          },
          {
            "$ref": "#/components/parameters/search.beds.min"
          },
          {
            "$ref": "#/components/parameters/search.beds.max"
          },
          {
            "$ref": "#/components/parameters/search.baths.min"
          },
          {
            "$ref": "#/components/parameters/search.baths.max"
          },
          {
            "$ref": "#/components/parameters/search.livingAreaSqft.min"
          },
          {
            "$ref": "#/components/parameters/search.livingAreaSqft.max"
          },
          {
            "$ref": "#/components/parameters/search.lotSizeAcres.min"
          },
          {
            "$ref": "#/components/parameters/search.lotSizeAcres.max"
          },
          {
            "$ref": "#/components/parameters/search.yearBuilt.min"
          },
          {
            "$ref": "#/components/parameters/search.yearBuilt.max"
          },
          {
            "$ref": "#/components/parameters/search.closeDate.from"
          },
          {
            "$ref": "#/components/parameters/search.closeDate.to"
          },
          {
            "$ref": "#/components/parameters/search.keywords"
          },
          {
            "$ref": "#/components/parameters/search.location.placeIds"
          },
          {
            "$ref": "#/components/parameters/search.location.postalCodes"
          },
          {
            "$ref": "#/components/parameters/search.location.cities"
          },
          {
            "$ref": "#/components/parameters/search.location.subdivisions"
          },
          {
            "$ref": "#/components/parameters/search.location.bbox"
          },
          {
            "$ref": "#/components/parameters/search.location.radius.center"
          },
          {
            "$ref": "#/components/parameters/search.location.radius.meters"
          },
          {
            "$ref": "#/components/parameters/search.location.shapeId"
          },
          {
            "$ref": "#/components/parameters/search.listAgentMlsId"
          },
          {
            "$ref": "#/components/parameters/search.listOfficeMlsId"
          },
          {
            "$ref": "#/components/parameters/search.openHouse.from"
          },
          {
            "$ref": "#/components/parameters/search.openHouse.to"
          },
          {
            "$ref": "#/components/parameters/search.modifiedSince"
          },
          {
            "$ref": "#/components/parameters/search.hasBasement"
          },
          {
            "$ref": "#/components/parameters/search.hasFireplace"
          },
          {
            "$ref": "#/components/parameters/search.hasPool"
          },
          {
            "$ref": "#/components/parameters/search.seniorCommunity"
          },
          {
            "$ref": "#/components/parameters/search.petsAllowed"
          },
          {
            "$ref": "#/components/parameters/search.newConstruction"
          },
          {
            "$ref": "#/components/parameters/search.waterfront"
          },
          {
            "$ref": "#/components/parameters/search.garage"
          },
          {
            "$ref": "#/components/parameters/search.sort"
          },
          {
            "$ref": "#/components/parameters/search.limit"
          },
          {
            "$ref": "#/components/parameters/search.cursor"
          },
          {
            "$ref": "#/components/parameters/ClientTokenOptional"
          },
          {
            "$ref": "#/components/parameters/ClientIdOptional"
          }
        ],
        "responses": {
          "200": {
            "description": "Pins, or clusters when more than 500 listings match",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapAnswer"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "dataLastUpdatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "When the data was last updated from Bright."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "dataLastUpdatedAt",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "compliance": {
                      "$ref": "#/components/schemas/Compliance"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "compliance",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, shape_invalid, shape_too_large, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      },
      "post": {
        "operationId": "mapListingsBody",
        "summary": "Pins and clusters for a map, with the filters as a JSON body",
        "description": "The same filters as the search (paging and sort keys are ignored), for a map. `GET` takes them\nas query keys, `POST` as the JSON body of the search schema, so a drawn `location.shape`\n(Premium) can drive the map; for the same query the two answer exactly alike. With 500 or\nfewer matching located listings:\n\n```json\n{ \"data\": { \"total\": 3, \"pins\": [ { \"listingKey\": \"…\", \"lat\": 40.01, \"lng\": -75.3, \"price\": 400000, \"status\": \"active\" } ], \"clusters\": [] } }\n```\n\nAbove 500, clusters on a world-aligned grid (a power-of-two fraction of a degree, at most 16\ncells across the request's `bbox`; without one, across the shape's bounding box when the\nrequest has a drawn or saved shape, else across the whole region):\n\n```json\n{ \"data\": { \"total\": 600, \"pins\": [], \"clusters\": [ { \"lat\": 40.4, \"lng\": -75.8, \"count\": 37, \"bbox\": [-75.81, 40.39, -75.79, 40.41] } ], \"gridCellDegrees\": 0.0220 } }\n```\n\nOnly listings with a shown address and a point inside the seven jurisdictions appear or are\ncounted. A hidden price is a null pin price. Zoom in (a smaller `bbox`) to turn clusters into\npins.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "shape_invalid",
            "shape_too_large",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientTokenOptional"
          },
          {
            "$ref": "#/components/parameters/ClientIdOptional"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "example": {
                "status": [
                  "active"
                ],
                "location": {
                  "bbox": [
                    -75.42,
                    40,
                    -75.3,
                    40.08
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Pins, or clusters when more than 500 listings match",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapAnswer"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "dataLastUpdatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "When the data was last updated from Bright."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "dataLastUpdatedAt",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "compliance": {
                      "$ref": "#/components/schemas/Compliance"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "compliance",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, shape_invalid, shape_too_large, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/listings/search": {
      "post": {
        "operationId": "searchListingsBody",
        "summary": "Search listings, with the filters as a JSON body",
        "description": "One search schema, two forms. `POST /v1/listings/search` takes it as a JSON body; `GET\n/v1/listings` takes it flattened into query keys (one request, cacheable, linkable):\n\n| Body                                              | Query                                                    |\n| ------------------------------------------------- | -------------------------------------------------------- |\n| `{ \"price\": { \"min\": 300000, \"max\": 450000 } }`   | `price.min=300000&price.max=450000`                      |\n| `{ \"status\": [\"active\", \"pending\"] }`             | `status=active,pending`                                  |\n| `{ \"location\": { \"placeIds\": [\"pl_a\", \"pl_b\"] } }`| `location.placeIds=pl_a,pl_b`                            |\n| `{ \"location\": { \"bbox\": [-75.42, 40.00, -75.30, 40.08] } }` | `location.bbox=-75.42,40.00,-75.30,40.08`      |\n| `{ \"location\": { \"cities\": [{ \"name\": \"Bryn Mawr\", \"state\": \"PA\" }] } }` | `location.cities=Bryn Mawr\\|PA`     |\n| `{ \"location\": { \"radius\": { \"center\": [-75.3, 40.01], \"meters\": 1609 } } }` | `location.radius.center=-75.3,40.01&location.radius.meters=1609` |\n| `{ \"hasPool\": true }`                             | `hasPool=true`                                           |\n\nDotted keys build nested objects, commas separate list items, and cities and subdivisions are\n`Name|ST` items. A key outside the schema is `400 validation_failed` naming it, in both forms;\nevery problem in a request is reported at once in `fields`. `location.shape` (a drawn shape)\nexists in the body form only.\n\n### Filters\n\nEach filter is described where it is listed: as a query key on the page of `GET /v1/listings`,\nand as a field of the body under [SearchRequest](https://docs.apidata.one/reference/objects/#searchrequest). Every filter is\noptional, and they combine with AND.\n\n`location.schoolIds` is not available: search by individual school waits for attendance-zone\ndata. It is `403 tier_insufficient` on Basic and `400 validation_failed` on Premium. Search a\n**school district** with its place ID in `location.placeIds` (Premium).\n\nA Premium field sent with a key on a Basic account is `403 tier_insufficient` with\n`capability` (`shapes` or `schools`), before anything else in the request is judged; it is\nnever ignored. `location.schoolDistrictIds` no longer exists (a school district is a place):\nit is `400 validation_failed` as an unknown key.\n\nLocation kinds combine with AND. Spatial kinds (`bbox`, `radius`, a drawn or saved shape, a\ncommunity place, the map) match listings with a shown address and a point inside the seven\njurisdictions only, so a hidden-address listing is found through its city, ZIP, subdivision or\nplace memberships, never through a shape. Filters that mean nothing for some classes (beds and baths for land and\ncommercial listings, living area for land) apply only where they mean something; those\nlistings stay in the results and the response carries the warning `filter_not_applicable`.\n\nThat warning is about the search, not about the page you got. It comes whenever `beds`,\n`baths` or `livingAreaSqft` is sent and the search could return a class the filter means\nnothing for, even when every listing on this page is a house. Its `message` names those\nclasses and its `fix` says how to leave them out: add a `propertyClass` filter with the\nclasses you want, such as `propertyClass=residential`. With that, the filter applies to\neverything the search can return, and no warning comes. A site that searches homes only\nshould send `propertyClass` on every search; one that shows land and commercial listings\nbeside homes can ignore the warning.\n\n### Newest first\n\n`sort=newest` orders every listing by its **latest status change**, newest first: a new\nlisting, one back on the market, a move under contract or a close. A listing back on the\nmarket counts as new again.\n\n- Every status is in the one timeline. A Coming Soon listing sorts by its status change like\n  any other, not by its expected on-market date.\n- A listing whose days on market Bright hides sorts like the rest. A sort shows an order,\n  never a date or a count: such a listing still has no `daysOnMarket`.\n- Listings that changed at the same moment come in a fixed order, and a listing with no\n  status change comes last.\n- The sandbox sorts the same way as live.\n\n### Prices Bright hides\n\nWhen Bright flags a listing's prices as not for display, its price fields are null, it can't\nmatch a price filter, and price sorts put it last in both directions. Likewise a listing with\nhidden price history has no `priceHistory`, and one with hidden days-on-site has no\n`daysOnMarket` or on-market dates.\n\n### Response\n\n```json\n{\n  \"data\": [ { \"listingKey\": \"805454359664\", \"…\": \"a ListingSummary\" } ],\n  \"meta\": {\n    \"requestId\": \"req_…\",\n    \"page\": { \"limit\": 24, \"nextCursor\": \"c_…\", \"total\": 1234, \"totalIsCapped\": false },\n    \"dataLastUpdatedAt\": \"2026-11-10T14:59:00.000Z\",\n    \"environment\": \"live\"\n  },\n  \"compliance\": { \"…\": \"the compliance block\" },\n  \"warnings\": [ { \"code\": \"close_date_clamped\", \"message\": \"…\", \"fix\": \"…\" } ]\n}\n```\n\n`total` is exact up to 10,000 and `totalIsCapped` says when it stopped counting. Pages are\nread with `cursor` (opaque, signed, bound to the filters and the sort: a cursor sent with other\nfilters or another sort, or altered, is `400 validation_failed` on `cursor`). A search can page\nthrough at most 10,000 results: the cursor that would start past that answers\n`400 pagination_limit_reached`; narrow the filters or sort differently. `nextCursor` is null on\nthe last page.\n\nIf the meaning of a sort ever changes, cursors made before the change are refused the same way\n(`400 validation_failed` on `cursor`): start again from the first page.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "pagination_limit_reached",
            "shape_invalid",
            "shape_too_large",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientTokenOptional"
          },
          {
            "$ref": "#/components/parameters/ClientIdOptional"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "example": {
                "status": [
                  "active"
                ],
                "price": {
                  "max": 500000
                },
                "beds": {
                  "min": 3
                },
                "location": {
                  "placeIds": [
                    "pl_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
                  ]
                },
                "sort": "newest",
                "limit": 24
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One page of listings, with the count, the disclosures and any warnings",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ListingSummary"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "page": {
                          "$ref": "#/components/schemas/SearchPage"
                        },
                        "dataLastUpdatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "When the data was last updated from Bright."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "page",
                        "dataLastUpdatedAt",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "compliance": {
                      "$ref": "#/components/schemas/Compliance"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "compliance",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, pagination_limit_reached, shape_invalid, shape_too_large, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/autocomplete": {
      "get": {
        "operationId": "autocomplete",
        "summary": "Suggestions for a search box: places, ZIP codes, addresses and MLS numbers",
        "description": "Suggestions for a search box, from two characters: `?q=ardm` plus an optional `types` list and an\noptional `near=lng,lat` that orders each group by distance from that point.\n\n```json\n{\n  \"data\": {\n    \"places\": [ { \"placeId\": \"pl_…\", \"kind\": \"community\", \"displayName\": \"Ardmore Park, PA\", \"state\": \"PA\", \"center\": { \"lat\": 40.01, \"lng\": -75.3 } } ],\n    \"schoolDistricts\": [ { \"placeId\": \"pl_…\", \"displayName\": \"Lower Merion School District, PA\", \"districtType\": \"unified\", \"grades\": \"KG-12\" } ],\n    \"postalCodes\": [ { \"postalCode\": \"19003\", \"state\": \"PA\", \"placeId\": \"pl_…\", \"displayName\": \"19003 (Ardmore, PA)\" } ],\n    \"addresses\": [ { \"listingKey\": \"…\", \"mlsNumber\": \"…\", \"status\": \"active\", \"address\": { \"line1\": \"101 MAIN ST\", \"unit\": null, \"city\": \"Ardmore\", \"state\": \"PA\", \"postalCode\": \"19003\" } } ],\n    \"mlsNumbers\": [ { \"listingKey\": \"…\", \"mlsNumber\": \"PAMC2141234\", \"current\": true, \"status\": \"active\", \"address\": { \"…\": \"…\" }, \"addressDisplay\": \"full\" } ]\n  },\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"live\" }\n}\n```\n\n| Group         | What it searches                                                                                     |\n| ------------- | ---------------------------------------------------------------------------------------------------- |\n| `places`      | live places by name (cities, counties, townships, communities, subdivisions); never a retired place, never a school district (those are `schoolDistricts`); ZIP areas are in `postalCodes` |\n| `schoolDistricts` | **Premium only.** School districts by name. `districtType` is `unified`, `elementary` or `secondary`; `grades` is the lowest and highest grade served, such as `KG-12` or `09-12` (`PK`, `KG`, `01` to `12`), or null. Search a district with its `placeId` in `location.placeIds` |\n| `postalCodes` | ZIP code areas by prefix (digits only)                                                               |\n| `addresses`   | listing addresses only, and only shown ones: a listing whose address is withheld never matches an address. On-market listings first, then closed |\n| `mlsNumbers`  | current and past MLS numbers (letters, digits and hyphens). A withheld listing may match here and is shown with `address: null` and `addressDisplay: \"withheld\"` |\n\nEach group returns at most ten items. `types` names the groups wanted; an unknown group is\n`400 validation_failed`. With `types` left out a Premium key gets all five groups and a Basic key\nthe other four. A Basic key that asks for `schoolDistricts` in `types` gets\n`403 tier_insufficient` with `capability: \"schools\"`. Matching is case-insensitive and by prefix of what was\ntyped (a place also matches when its display name contains the text), and the typed text is\ntaken literally: `%` and `_` are characters, not wildcards.\n\n**The 12-hour stop.** `addresses` and `mlsNumbers` are listing content, so a request that asks for\nthem (or leaves `types` out) is `500 data_stale` as a whole while the stop is on.\n`places`, `schoolDistricts` and `postalCodes`, alone or together, keep working during the stop.",
        "tags": [
          "Search box"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "refused when it asks for listing content"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "data_stale",
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "What the visitor typed: 2 to 100 characters. Matching is by prefix and ignores case; % and _ are ordinary characters.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            },
            "example": "ardm"
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "description": "The groups you want, separated by commas: places, schoolDistricts, postalCodes, addresses, mlsNumbers. Left out: every group the key's plan has (schoolDistricts is Premium). Asking for addresses or mlsNumbers makes the request listing content, which the 12-hour stop refuses.",
            "schema": {
              "type": "string"
            },
            "example": "places,postalCodes"
          },
          {
            "name": "near",
            "in": "query",
            "required": false,
            "description": "A point as \"lng,lat\": each group is ordered by distance from it.",
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?,-?\\d+(\\.\\d+)?$"
            },
            "example": "-75.30,40.02"
          }
        ],
        "responses": {
          "200": {
            "description": "The suggestions, at most ten a group. Only the groups that were asked for are present",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "places": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "placeId": {
                                "type": "string",
                                "pattern": "^pl_[A-Za-z0-9]{22}$"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "state",
                                  "county",
                                  "city",
                                  "municipality",
                                  "cdp",
                                  "community",
                                  "zcta",
                                  "postal_city",
                                  "subdivision",
                                  "school_district"
                                ]
                              },
                              "displayName": {
                                "type": "string",
                                "description": "Show it as it is: it tells look-alikes apart."
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "center": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "lat": {
                                        "type": "number"
                                      },
                                      "lng": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "lat",
                                      "lng"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "placeId",
                              "kind",
                              "displayName",
                              "state",
                              "center"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Towns, counties, townships, communities and subdivisions by name. Search one with location.placeIds."
                        },
                        "schoolDistricts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "placeId": {
                                "type": "string",
                                "pattern": "^pl_[A-Za-z0-9]{22}$"
                              },
                              "displayName": {
                                "type": "string"
                              },
                              "districtType": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "unified, elementary or secondary."
                              },
                              "grades": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Such as \"KG-12\"."
                              }
                            },
                            "required": [
                              "placeId",
                              "displayName",
                              "districtType",
                              "grades"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Premium only. School districts by name. Search one with location.placeIds."
                        },
                        "postalCodes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "postalCode": {
                                "type": "string"
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "placeId": {
                                "type": "string",
                                "pattern": "^pl_[A-Za-z0-9]{22}$"
                              },
                              "displayName": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "postalCode",
                              "state",
                              "placeId",
                              "displayName"
                            ],
                            "additionalProperties": false
                          },
                          "description": "ZIP code areas by prefix."
                        },
                        "addresses": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "listingKey": {
                                "type": "string"
                              },
                              "mlsNumber": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "active",
                                  "active_under_contract",
                                  "coming_soon",
                                  "pending",
                                  "closed"
                                ]
                              },
                              "address": {
                                "type": "object",
                                "properties": {
                                  "line1": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "unit": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "city": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "state": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "postalCode": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "line1",
                                  "unit",
                                  "city",
                                  "state",
                                  "postalCode"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "listingKey",
                              "mlsNumber",
                              "status",
                              "address"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Listings by their address, on-market ones first. A listing whose address is withheld never matches here."
                        },
                        "mlsNumbers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "listingKey": {
                                "type": "string"
                              },
                              "mlsNumber": {
                                "type": "string",
                                "description": "The number that matched: the current one, or a past one."
                              },
                              "current": {
                                "type": "boolean",
                                "description": "True when the number is the listing's current one."
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "active",
                                  "active_under_contract",
                                  "coming_soon",
                                  "pending",
                                  "closed"
                                ]
                              },
                              "address": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postalCode": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "line1",
                                      "city",
                                      "state",
                                      "postalCode"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Null when the address is withheld."
                              },
                              "addressDisplay": {
                                "type": "string",
                                "enum": [
                                  "full",
                                  "withheld"
                                ]
                              }
                            },
                            "required": [
                              "listingKey",
                              "mlsNumber",
                              "current",
                              "status",
                              "address",
                              "addressDisplay"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Listings by a current or past MLS number."
                        }
                      },
                      "required": [],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "data_stale, internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/places/{placeId}": {
      "get": {
        "operationId": "getPlace",
        "summary": "A place's names, center and bounding box",
        "description": "```json\n{\n  \"data\": {\n    \"placeId\": \"pl_…\",\n    \"kind\": \"municipality\",\n    \"name\": \"Lower Merion\",\n    \"displayName\": \"Lower Merion Township, Montgomery County, PA\",\n    \"state\": \"PA\",\n    \"slug\": \"pa/montgomery-county/lower-merion-township\",\n    \"typeLabel\": \"township\",\n    \"cityCounty\": false,\n    \"center\": { \"lat\": 40.02, \"lng\": -75.3 },\n    \"bbox\": [-75.35, 39.98, -75.25, 40.06],\n    \"radiusMeters\": null,\n    \"approximate\": false,\n    \"source\": \"census_tiger\",\n    \"license\": \"public-domain\",\n    \"attribution\": null,\n    \"vintage\": \"2026\",\n    \"asOf\": null,\n    \"parents\": [ { \"placeId\": \"pl_…\", \"kind\": \"county\", \"displayName\": \"Montgomery County, PA\", \"overlapFraction\": 1, \"primary\": true } ]\n  }\n}\n```\n\n- A `community` is a point with a radius: `radiusMeters` (1,609 unless the source says otherwise).\n- A city that is its own county reads as `kind: \"city\"`.\n- A school district is served to Premium keys only: a Basic key gets `403 tier_insufficient`\n  with `capability: \"schools\"`. Its object adds `ncesId` (the district's NCES ID),\n  `districtType` (`unified`, `elementary` or `secondary`), `grades` (lowest and highest grade,\n  such as `KG-12`; `PK`, `KG`, `01` to `12`) and `notice`: \"School assignments are subject to\n  change; verify with the school district.\" `asOf` and `source` say when and from where the\n  district's boundary comes.\n- A place that was retired (merged or removed in a rebuild) is `404 not_found` for everyone, and\n  never appears as a parent. So is an ID that doesn't exist.\n\n### `source`: where a place comes from\n\n`source` is a code, the same on a place object and on its outline. These six are every code the\nAPI serves:\n\n| `source` | On places of kind | What it means |\n| --- | --- | --- |\n| `census_tiger` | `state`, `county`, `city`, `municipality`, `cdp`, `zcta` | The U.S. Census Bureau's TIGER/Line boundary files. (`city` is how a county that is its own city reads.) |\n| `nces_edge` | `school_district` | The school district boundaries of the National Center for Education Statistics (its EDGE program). |\n| `usgs_gnis` | `community` | The U.S. Geological Survey's Geographic Names Information System: a named point, served with a radius and no outline. |\n| `bright_derived` | `postal_city` | Worked out from Bright MLS data: the city names listings carry, and each ZIP code's preferred city. Its outline, where it has one, is put together from ZIP areas and marked `approximate`. |\n| `bright_lookup` | `subdivision` | A subdivision name that is in Bright MLS's own list of subdivisions. No outline. |\n| `bright_listing` | `subdivision` | A subdivision name that listings carry and Bright's list doesn't have. No outline. |\n\n`vintage` names the source's edition: the year for the Census files (`\"2026\"`), the school year\nfor school districts (`\"SY2024-25\"`), `\"current\"` for GNIS, and null for the three Bright codes.\n`asOf` is a date for school districts only, the first day of that school year (`\"2024-07-01\"`);\nfor every other kind it is null. `license` is `public-domain` and `attribution` is null for every\nplace today.",
        "tags": [
          "Places"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "placeId",
            "in": "path",
            "required": true,
            "description": "The place's ID, \"pl_…\", from autocomplete, from a listing's `places`, or from GET /v1/places/containing.",
            "schema": {
              "type": "string",
              "pattern": "^pl_[A-Za-z0-9]{22}$"
            },
            "example": "pl_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          }
        ],
        "responses": {
          "200": {
            "description": "The place",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Place"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/places/{placeId}/geometry": {
      "get": {
        "operationId": "getPlaceGeometry",
        "summary": "A place's outline, simplified for a map zoom",
        "description": "**Premium only** (`403 tier_insufficient` with `capability: \"shapes\"` on Basic). The place's\noutline, simplified for the map zoom it will be drawn at:\n\n```json\n{\n  \"data\": {\n    \"placeId\": \"pl_…\",\n    \"kind\": \"county\",\n    \"zoom\": 11,\n    \"tier\": \"display_mid\",\n    \"approximate\": false,\n    \"vertices\": 412,\n    \"geometry\": { \"type\": \"MultiPolygon\", \"coordinates\": [[[[-75.3501, 40.0012], [-75.3498, 40.0021], [-75.3501, 40.0012]]]] },\n    \"source\": \"census_tiger\",\n    \"attribution\": null\n  },\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"live\" }\n}\n```\n\n- `zoom` is required: a whole number, read as 0 below 0 and as 22 above 22 (the answer carries\n  the value used). Without it, or with anything else, `400 validation_failed`.\n- The zoom picks one of three versions of the outline: `display_lo` at zoom 9 or less,\n  `display_mid` at 10 to 12, `display_hi` at 13 or more. Coordinates have 4 decimals at low and\n  mid zoom and 5 at high zoom. There is no full-precision option.\n- `geometry` is a GeoJSON `MultiPolygon` of at most 5,000 corners. `vertices` is its corner\n  count: every position except each ring's closing repeat.\n- `tier` names the version served. If the version for the zoom isn't available for a place,\n  the next coarser one is served and named; never a finer one.\n- `approximate` is true for an outline put together from other shapes, such as a postal city's\n  (the ZIP areas it is the preferred city of).\n- `404 not_found` for an ID that doesn't exist, a retired place, and a place that has no\n  outline: a community (a point, searched within its radius), a subdivision (matched by the\n  name each listing carries) and a postal city no ZIP area could be found for. The message says\n  which; `location.placeIds` still searches all three.\n- A school district's outline is served like any other place's.\n- Limits: 60 outlines in any 60 seconds and 5,000 a UTC day, per key. See\n  [rate limits](https://docs.apidata.one/concepts/rate-limits/) for the headers every outline answer carries.",
        "tags": [
          "Places"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "Premium",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "quota_exceeded",
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "placeId",
            "in": "path",
            "required": true,
            "description": "The place's ID, \"pl_…\", from autocomplete, from a listing's `places`, or from GET /v1/places/containing.",
            "schema": {
              "type": "string",
              "pattern": "^pl_[A-Za-z0-9]{22}$"
            },
            "example": "pl_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          },
          {
            "name": "zoom",
            "in": "query",
            "required": true,
            "description": "The map zoom the outline will be drawn at. Below 0 is read as 0, above 22 as 22.",
            "schema": {
              "type": "integer"
            },
            "example": 11
          }
        ],
        "responses": {
          "200": {
            "description": "The outline",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Outline-Quota-Limit": {
                "description": "Outlines a key may be served in a UTC day: 5000.",
                "schema": {
                  "type": "string"
                }
              },
              "Outline-Quota-Remaining": {
                "description": "Outlines left today.",
                "schema": {
                  "type": "string"
                }
              },
              "Outline-Quota-Reset": {
                "description": "Seconds until 00:00 UTC.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "placeId": {
                          "type": "string",
                          "pattern": "^pl_[A-Za-z0-9]{22}$"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "state",
                            "county",
                            "city",
                            "municipality",
                            "cdp",
                            "community",
                            "zcta",
                            "postal_city",
                            "subdivision",
                            "school_district"
                          ]
                        },
                        "zoom": {
                          "type": "integer",
                          "description": "The zoom that was used, from 0 to 22."
                        },
                        "tier": {
                          "type": "string",
                          "enum": [
                            "display_lo",
                            "display_mid",
                            "display_hi"
                          ],
                          "description": "Which of the three versions was served: zoom 9 or less, 10 to 12, 13 or more."
                        },
                        "approximate": {
                          "type": "boolean"
                        },
                        "vertices": {
                          "type": "integer",
                          "description": "How many corners the outline has: at most 5,000."
                        },
                        "geometry": {
                          "type": "object",
                          "description": "A GeoJSON MultiPolygon. Coordinates are [longitude, latitude].",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "MultiPolygon"
                              ]
                            },
                            "coordinates": {
                              "type": "array"
                            }
                          },
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "additionalProperties": false
                        },
                        "source": {
                          "type": "string",
                          "description": "Where the outline comes from: the place's own `source`."
                        },
                        "attribution": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "placeId",
                        "kind",
                        "zoom",
                        "tier",
                        "approximate",
                        "vertices",
                        "geometry",
                        "source",
                        "attribution"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "quota_exceeded, rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/places/containing": {
      "get": {
        "operationId": "getPlacesContaining",
        "summary": "The places that hold a point",
        "description": "The places whose outline covers the point, the communities whose radius reaches it, and the\npostal city the covering ZIP area prefers, as a list of place objects: each is the object\n`GET /v1/places/{placeId}` serves, `parents` included, plus `via`: `geometry`, `radius` or\n`postal_city`. School districts appear for Premium keys only, as places and as parents;\nretired places never. An empty list means the point lies outside the seven jurisdictions.",
        "tags": [
          "Places"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "required": true,
            "description": "The latitude.",
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            },
            "example": 40.01
          },
          {
            "name": "lng",
            "in": "query",
            "required": true,
            "description": "The longitude.",
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            },
            "example": -75.3
          }
        ],
        "responses": {
          "200": {
            "description": "The places, or an empty list for a point outside the seven jurisdictions",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PlaceContaining"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/client-tokens": {
      "post": {
        "operationId": "createClientToken",
        "summary": "Mint a short-lived token that lets a browser act for one consumer",
        "description": "Call it from your server. It mints a short-lived token that lets your website act for one\nconsumer with your `pk_` key.\n\nRequest:\n\n```json\n{ \"clientId\": \"u_8f2k\", \"expiresInMinutes\": 15 }\n```\n\n- `clientId`: required; your opaque ID for the consumer, 1–64 characters of `A-Z a-z 0-9 _ -`.\n  Missing is `400 validation_failed`. An email address, a phone number or other characters get\n  `400 client_id_must_be_opaque`.\n- `expiresInMinutes`: optional, default 15, at most 60. A larger value is `400 validation_failed`,\n  never silently shortened.\n\nWorks while the account is suspended, so your consumers can still read and delete what they\nsaved.\n\nResponse `201`:\n\n```json\n{ \"data\": { \"token\": \"eyJ…\", \"expiresAt\": \"2026-11-02T12:15:00.000Z\" }, \"meta\": { \"requestId\": \"req_…\", \"environment\": \"test\" } }\n```\n\nThe browser then sends `Authorization: Bearer pk_…` and `X-Client-Token: eyJ…`. The token is\nbound to your account and environment; it is `401 client_token_account_mismatch` with another\naccount's `pk_` key and `401 client_token_invalid` across environments. Mint a new one when it\nexpires (`401 client_token_expired`).",
        "tags": [
          "Consumers"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$",
                    "description": "Your own opaque ID for the consumer: 1 to 64 characters of letters, digits, _ and -. Never an email address or a phone number."
                  },
                  "expiresInMinutes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60,
                    "default": 15,
                    "description": "How long the token lasts. 15 when left out; at most 60."
                  }
                },
                "required": [
                  "clientId"
                ],
                "additionalProperties": false
              },
              "example": {
                "clientId": "u_8f2k",
                "expiresInMinutes": 15
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The token, and when it stops working",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "token": {
                          "type": "string",
                          "description": "Send it as the X-Client-Token header, with your publishable key."
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                          "description": "Mint a new one before this."
                        }
                      },
                      "required": [
                        "token",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "data": {
                    "token": "eyJ…",
                    "expiresAt": "2026-11-02T12:15:00.000Z"
                  },
                  "meta": {
                    "requestId": "req_7Hk2mT1xKp7Zc2Nf5Rb9Wd",
                    "environment": "test"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/clients/{clientId}": {
      "delete": {
        "operationId": "deleteClient",
        "summary": "Delete everything stored for one consumer",
        "description": "Hard-deletes everything stored for one consumer of your account: favorites,\nsaved shapes, saved searches, the notices recorded for that consumer (with their webhook\ndeliveries) and its `Idempotency-Key` records. Use it for consumer privacy requests.\n\n- `{clientId}` is the consumer's opaque ID. An invalid ID is `400 client_id_must_be_opaque`.\n- Response: `204` with no body, whether or not the consumer had any data (deleting is\n  idempotent). Re-creating the same client afterwards starts empty.\n- An `X-Client-Id` header on this call is ignored; the path names the consumer.\n- Works while the account is suspended, so consumers can still be forgotten.\n- Waits at most about a second for an in-flight write of the same consumer; past that it answers\n  `500 temporarily_unavailable` with `Retry-After`, and nothing is changed.",
        "tags": [
          "Consumers"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the consumer the path names",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "description": "The consumer's opaque ID, as your server names them.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,64}$"
            },
            "example": "u_8f2k"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted, whether or not the consumer had any data",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/favorites": {
      "get": {
        "operationId": "listFavorites",
        "summary": "A consumer's favorites, newest first",
        "description": "```json\n{ \"data\": [ { \"id\": \"fav_…\", \"listingKey\": \"805454359664\", \"createdAt\": \"2026-11-02T12:00:00.000Z\" } ],\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"test\" } }\n```\n\nNewest first. Works while the account is suspended.",
        "tags": [
          "Favorites"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "200": {
            "description": "The favorites",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Favorite"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "data": [
                    {
                      "id": "fav_3yQ8mT1xKp7Zc2Nf5Rb9Wd",
                      "listingKey": "805454359664",
                      "createdAt": "2026-11-02T12:00:00.000Z"
                    }
                  ],
                  "meta": {
                    "requestId": "req_7Hk2mT1xKp7Zc2Nf5Rb9Wd",
                    "environment": "test"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "post": {
        "operationId": "createFavorite",
        "summary": "Save a listing for a consumer",
        "description": "Request `{ \"listingKey\": \"805454359664\" }`. Response `201` with the new favorite; posting a\nlisting the consumer already saved returns the same record with `200`, never a duplicate.\nRefused with `403 account_suspended` while suspended. Writes for one consumer are applied one\nat a time: a `POST` that overlaps a delete of the same favorite or of the consumer still answers\n`200` or `201`, and the delete takes effect right after it. A write waits at most about a second\nfor an earlier write of the same consumer; past that, or in the rare case that the write keeps\nlosing a race with changes made outside the API, it answers `500 temporarily_unavailable` with\n`Retry-After`, and nothing is saved. The same cap applies to `DELETE /v1/favorites/{id}` and\n`DELETE /v1/clients/{clientId}`.\n\n`Idempotency-Key` is accepted: a retry with the same key and body gets the first answer again\n(its status included) with `Idempotency-Replayed: true`, and saves nothing. See\n[idempotency](https://docs.apidata.one/concepts/idempotency/).",
        "tags": [
          "Favorites"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "listing_not_found"
          ],
          "409": [
            "idempotency_conflict"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "listingKey": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$",
                    "description": "The key of a listing this environment serves."
                  }
                },
                "required": [
                  "listingKey"
                ],
                "additionalProperties": false
              },
              "example": {
                "listingKey": "805454359664"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The consumer had saved this listing before: the same favorite, never a second one",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Idempotency-Replayed": {
                "$ref": "#/components/headers/Idempotency-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Favorite"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "201": {
            "description": "Saved",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Idempotency-Replayed": {
                "$ref": "#/components/headers/Idempotency-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Favorite"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "listing_not_found"
          },
          "409": {
            "$ref": "#/components/responses/Error",
            "description": "idempotency_conflict"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/favorites/{id}": {
      "get": {
        "operationId": "getFavorite",
        "summary": "One favorite",
        "description": "One favorite, or `404 not_found`. IDs are random (`fav_…`); an ID from another account or\nanother consumer is `404`, never `403`.",
        "tags": [
          "Favorites"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The favorite's ID, \"fav_…\".",
            "schema": {
              "type": "string"
            },
            "example": "fav_3yQ8mT1xKp7Zc2Nf5Rb9Wd"
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "200": {
            "description": "The favorite",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Favorite"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "delete": {
        "operationId": "deleteFavorite",
        "summary": "Remove a favorite",
        "tags": [
          "Favorites"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The favorite's ID, \"fav_…\".",
            "schema": {
              "type": "string"
            },
            "example": "fav_3yQ8mT1xKp7Zc2Nf5Rb9Wd"
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "204": {
            "description": "Removed",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/saved-searches": {
      "get": {
        "operationId": "listSavedSearches",
        "summary": "A consumer's saved searches, newest first",
        "description": "The consumer's saved searches, newest first, each as [the object](https://docs.apidata.one/reference/saved-searches/#the-object).",
        "tags": [
          "Saved searches"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "200": {
            "description": "The saved searches",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SavedSearch"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "post": {
        "operationId": "createSavedSearch",
        "summary": "Save a search for a consumer, with how often it alerts",
        "description": "```json\n{\n  \"name\": \"Ardmore under 500k\",\n  \"criteria\": { \"price\": { \"max\": 500000 }, \"location\": { \"placeIds\": [\"pl_…\"] } },\n  \"alertFrequency\": \"daily\"\n}\n```\n\n`name` is optional, 1 to 100 characters. Response `201` with [the saved search](https://docs.apidata.one/reference/saved-searches/#the-object). What `criteria` may hold,\nand what each `alertFrequency` means, is on [that page](https://docs.apidata.one/reference/saved-searches/#criteria).\n\n- The 101st saved search of a consumer is `409 limit_reached`.\n- `Idempotency-Key` is accepted: see [idempotency](https://docs.apidata.one/concepts/idempotency/).\n- Refused with `403 account_suspended` while the account is suspended.",
        "tags": [
          "Saved searches"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "idempotency_conflict",
            "limit_reached"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "A name for the search, 1 to 100 characters."
                  },
                  "criteria": {
                    "$ref": "#/components/schemas/SearchFilters"
                  },
                  "alertFrequency": {
                    "type": "string",
                    "enum": [
                      "instant",
                      "daily",
                      "weekly",
                      "off"
                    ],
                    "description": "When matches are gathered into a notice: after each data update, daily at 7:00 am Eastern, Mondays at 7:00 am Eastern, or never."
                  }
                },
                "required": [
                  "criteria",
                  "alertFrequency"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Ardmore under 500k",
                "criteria": {
                  "price": {
                    "max": 500000
                  },
                  "location": {
                    "placeIds": [
                      "pl_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
                    ]
                  }
                },
                "alertFrequency": "daily"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Saved",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Idempotency-Replayed": {
                "$ref": "#/components/headers/Idempotency-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedSearch"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "409": {
            "$ref": "#/components/responses/Error",
            "description": "idempotency_conflict, limit_reached"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/saved-searches/{id}": {
      "get": {
        "operationId": "getSavedSearch",
        "summary": "One saved search",
        "tags": [
          "Saved searches"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The saved search's ID, \"ss_…\".",
            "schema": {
              "type": "string"
            },
            "example": "ss_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "200": {
            "description": "The saved search",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedSearch"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "patch": {
        "operationId": "updateSavedSearch",
        "summary": "Change a saved search's name, criteria or alert frequency",
        "description": "Send any of `name`, `criteria` and `alertFrequency`; only what you send changes. `name: null`\nremoves the name. New `criteria` are checked exactly as on create. An empty body is\n`400 validation_failed`. Response `200` with the object.\n\n- Changing `criteria` starts the search afresh: listings that match the new criteria at that\n  moment don't alert. Sending the same criteria again changes nothing.\n- Changing only `alertFrequency` neither loses nor repeats a change: whatever hasn't alerted yet\n  goes out at the new frequency. Leaving `off` starts the search afresh.\n- Refused with `403 account_suspended` while the account is suspended.",
        "tags": [
          "Saved searches"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The saved search's ID, \"ss_…\".",
            "schema": {
              "type": "string"
            },
            "example": "ss_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Send any of the three; only what you send changes.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "description": "A name for the search, 1 to 100 characters."
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "null removes the name."
                  },
                  "criteria": {
                    "$ref": "#/components/schemas/SearchFilters"
                  },
                  "alertFrequency": {
                    "type": "string",
                    "enum": [
                      "instant",
                      "daily",
                      "weekly",
                      "off"
                    ],
                    "description": "When matches are gathered into a notice: after each data update, daily at 7:00 am Eastern, Mondays at 7:00 am Eastern, or never."
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "example": {
                "alertFrequency": "instant"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The saved search as it is now",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedSearch"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "delete": {
        "operationId": "deleteSavedSearch",
        "summary": "Delete a saved search",
        "description": "`204` with no body, or `404 not_found`. Reads and deletes keep working while the account is\nsuspended.",
        "tags": [
          "Saved searches"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The saved search's ID, \"ss_…\".",
            "schema": {
              "type": "string"
            },
            "example": "ss_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/saved-shapes": {
      "get": {
        "operationId": "listSavedShapes",
        "summary": "A consumer's saved shapes, newest first, without their geometry",
        "description": "The consumer's shapes, newest first, without their geometry:\n\n```json\n{ \"data\": [ { \"id\": \"shp_…\", \"name\": \"Near the station\", \"vertices\": 4, \"areaSqKm\": 0.037872, \"createdAt\": \"2026-11-11T15:00:00.000Z\" } ],\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"test\" } }\n```",
        "tags": [
          "Saved shapes"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "Premium",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "200": {
            "description": "The saved shapes",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^shp_[A-Za-z0-9]{22}$",
                            "description": "\"shp_…\"."
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "vertices": {
                            "type": "integer",
                            "description": "The ring's corners; its closing repeat is not one."
                          },
                          "areaSqKm": {
                            "type": "number",
                            "description": "The area on the Earth's surface, in square kilometres."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "vertices",
                          "areaSqKm",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "post": {
        "operationId": "createSavedShape",
        "summary": "Save a shape a consumer drew",
        "description": "Request:\n\n```json\n{\n  \"name\": \"Near the station\",\n  \"geometry\": {\n    \"type\": \"Polygon\",\n    \"coordinates\": [[[-75.301, 40.009], [-75.299, 40.009], [-75.299, 40.011], [-75.301, 40.011], [-75.301, 40.009]]]\n  }\n}\n```\n\n`name` is optional, 1 to 100 characters. Response `201`:\n\n```json\n{\n  \"data\": {\n    \"id\": \"shp_…\",\n    \"name\": \"Near the station\",\n    \"geometry\": { \"type\": \"Polygon\", \"coordinates\": [[[-75.301, 40.009], [-75.299, 40.009], [-75.299, 40.011], [-75.301, 40.011], [-75.301, 40.009]]] },\n    \"vertices\": 4,\n    \"areaSqKm\": 0.037872,\n    \"createdAt\": \"2026-11-11T15:00:00.000Z\"\n  },\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"test\" }\n}\n```\n\n- `vertices` counts corners: the ring's closing position, which repeats the first, isn't one.\n  A position that repeats the one before it is dropped.\n- `areaSqKm` is the area on the Earth's surface (WGS84).\n- A shape that isn't acceptable is `400 shape_invalid` or `400 shape_too_large`, naming the\n  field `geometry` and a `reason`; see [drawn shapes](https://docs.apidata.one/concepts/shapes/). Anything else wrong\n  with the body (an unknown key, a bad name, no `geometry`) is `400 validation_failed`.\n- The 101st shape is `409 limit_reached`.\n- `Idempotency-Key` is accepted: see [idempotency](https://docs.apidata.one/concepts/idempotency/).\n- Refused with `403 account_suspended` while the account is suspended.",
        "tags": [
          "Saved shapes"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "Premium",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "shape_invalid",
            "shape_too_large",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "409": [
            "idempotency_conflict",
            "limit_reached"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "A name for the shape, 1 to 100 characters."
                  },
                  "geometry": {
                    "$ref": "#/components/schemas/DrawnShape"
                  }
                },
                "required": [
                  "geometry"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Near the station",
                "geometry": {
                  "type": "Polygon",
                  "coordinates": [
                    [
                      [
                        -75.301,
                        40.009
                      ],
                      [
                        -75.299,
                        40.009
                      ],
                      [
                        -75.299,
                        40.011
                      ],
                      [
                        -75.301,
                        40.011
                      ],
                      [
                        -75.301,
                        40.009
                      ]
                    ]
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Saved",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Idempotency-Replayed": {
                "$ref": "#/components/headers/Idempotency-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedShape"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, shape_invalid, shape_too_large, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "409": {
            "$ref": "#/components/responses/Error",
            "description": "idempotency_conflict, limit_reached"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/saved-shapes/{id}": {
      "get": {
        "operationId": "getSavedShape",
        "summary": "One saved shape, with its geometry",
        "description": "One shape with its `geometry`, as `POST` returned it, or `404 not_found`.",
        "tags": [
          "Saved shapes"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "Premium",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The saved shape's ID, \"shp_…\".",
            "schema": {
              "type": "string"
            },
            "example": "shp_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "200": {
            "description": "The saved shape",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedShape"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "delete": {
        "operationId": "deleteSavedShape",
        "summary": "Delete a saved shape",
        "description": "`204` with no body, or `404 not_found`. Reads and deletes keep working while the account is\nsuspended.\n\nA shape that one of the consumer's [saved searches](https://docs.apidata.one/reference/saved-searches/) names isn't deleted:\nthe answer is [`409 shape_in_use`](https://docs.apidata.one/errors/shape_in_use/), and `savedSearchIds` lists the\nsearches. Edit or delete those first.",
        "tags": [
          "Saved shapes"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "Premium",
          "environment": "live and sandbox",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "client_token_required",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "tier_insufficient"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "shape_in_use"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The saved shape's ID, \"shp_…\".",
            "schema": {
              "type": "string"
            },
            "example": "shp_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, client_token_required, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, tier_insufficient"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "409": {
            "$ref": "#/components/responses/Error",
            "description": "shape_in_use"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/events": {
      "get": {
        "operationId": "listEvents",
        "summary": "The account's notices, oldest first: the pull alternative to webhooks",
        "description": "Your account's [notices](https://docs.apidata.one/concepts/webhooks/), oldest first: the same JSON a webhook\ncarries. Use it when your server has no public address for a webhook, or to catch up after your\nendpoint was down for longer than the 24 hours a delivery is retried.\n\nThe list is the whole account's: `X-Client-Id` is not read, and a notice for a consumer carries\nits `clientId`. It holds only your account's notices, in the environment of the key.\n\n```\nGET /v1/events?after=evt_3yQ8mT1xKp7Zc2Nf5Rb9Wd&types=saved_search.matches,listing.removed&limit=100\n```\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"evt_…\",\n      \"type\": \"listing.removed\",\n      \"createdAt\": \"2026-11-13T15:00:00.000Z\",\n      \"accountId\": \"…\",\n      \"listingKeys\": [\"300451207716\"],\n      \"changes\": [\"removed\"]\n    }\n  ],\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"live\", \"page\": { \"limit\": 100, \"hasMore\": false } }\n}\n```\n\n### Reading it\n\n1. Call without `after` the first time. Handle each notice in order.\n2. Remember the `id` of the last notice you handled, and pass it as `after` on the next call.\n3. While `meta.page.hasMore` is `true`, call again at once. When it is `false`, wait (a minute is\n   a sensible pace) and call again with the same `after`.\n\n**A page can come back short, or empty, with `hasMore` still `true`.** A notice gets its place\nin the list when the list is read, a bounded number per call. After a long gap, for instance\nwhen you have taken your notices by webhook until now, the list catches up a part at a time.\nKeep calling while `hasMore` is `true`: every call makes progress.\n\n**`after` can be the `id` of any notice of your account,** also one you received by webhook and\nhave never seen in this list. You then get the notices that come after it; until the list has\ncaught up to it, the page is empty and `hasMore` is `true`.\n\n**Nothing is skipped.** The list is in the order the API handed notices out, not strictly by\n`createdAt`: a notice that was recorded a moment late is placed after the ones already served,\nso a client paging with `after` always reaches it. Order by position in the list, and\nde-duplicate by `id` if you also receive webhooks.\n\n`after` keeps working when its notice is no longer listed: one that was deleted with its\nconsumer or its saved search, or hidden by a reinstatement, still marks your place.\n\n### What the list holds\n\n- **30 days.** A notice is deleted 30 days after it was recorded.\n- **`types`** filters the answer; `after` may name a notice of any type.\n- A [`ping`](https://docs.apidata.one/concepts/webhooks/#the-seven-types) is never in the list.\n- Deleting a consumer (`DELETE /v1/clients/{clientId}`) deletes that consumer's notices, and\n  deleting a saved search deletes its `saved_search.matches` notices.\n- **After a reinstatement,** notices recorded more than 24 hours before it are no longer\n  listed. [Re-check your stored listings](https://docs.apidata.one/concepts/webhooks/#suspension-and-reinstatement).\n\n### When it refuses\n\n- `400 validation_failed` on `after` when it names no notice of your account: an ID that never\n  existed, another account's, or a notice past its 30 days. **To recover, call again without\n  `after`,** which starts at the oldest notice kept, and skip the IDs you have already handled.\n  This happens to a reader that was stopped for more than 30 days.\n- `400 validation_failed` for a `limit` out of range, an unknown type in `types`, or a parameter\n  other than these three.\n- [`403 account_suspended`](https://docs.apidata.one/errors/account_suspended/) while the account is suspended.\n- `500 temporarily_unavailable` with `Retry-After` when two readers of the same account call at\n  the same moment and one would have to wait more than a second. Calling again is safe. Run one\n  reader per account.",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "The id of the last notice you handled. The answer starts with the one after it.",
            "schema": {
              "type": "string",
              "pattern": "^evt_[A-Za-z0-9]{22}$"
            }
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "description": "Only these notice types, separated by commas: saved_search.matches, favorite.listing_updated, favorite.listing_removed, listing.removed, account.suspended, account.reinstated, data.stale.",
            "schema": {
              "type": "string"
            },
            "example": "saved_search.matches,listing.removed"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Notices a page: 1 to 100. 100 when left out.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of notices. A page can be short, or empty, with hasMore still true",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Notice"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "page": {
                          "type": "object",
                          "properties": {
                            "limit": {
                              "type": "integer"
                            },
                            "hasMore": {
                              "type": "boolean",
                              "description": "true: call again at once. false: wait, then call with the same `after`."
                            }
                          },
                          "required": [
                            "limit",
                            "hasMore"
                          ],
                          "additionalProperties": false
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "page",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/webhook-endpoints": {
      "get": {
        "operationId": "listWebhookEndpoints",
        "summary": "The account's webhook endpoints, newest first",
        "description": "The account's endpoints, newest first, each as [the object](https://docs.apidata.one/reference/webhook-endpoints/#the-object), never with its secret.",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "responses": {
          "200": {
            "description": "The endpoints",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookEndpoint"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "post": {
        "operationId": "createWebhookEndpoint",
        "summary": "Register an address for notices; its secret is shown once, in this answer",
        "description": "```json\n{\n  \"url\": \"https://example.com/webhooks/apidata\",\n  \"eventTypes\": [\"saved_search.matches\", \"listing.removed\"],\n  \"description\": \"Production site\"\n}\n```\n\nA `url` that isn't `https://`, names an IP address instead of a host name, or holds a user name,\na password or a fragment (`#…`) is [`400 webhook_url_invalid`](https://docs.apidata.one/errors/webhook_url_invalid/).\nAny other problem with the body is `400 validation_failed`, naming each field under `body.`.\n\n**Registration sends a ping.** Before anything is saved, the API:\n\n1. resolves the host and checks that **every** address it resolves to is public. If not:\n   [`400 webhook_destination_refused`](https://docs.apidata.one/errors/webhook_destination_refused/);\n2. sends a signed [`ping`](https://docs.apidata.one/concepts/webhooks/#the-seven-types) to the URL and waits up to\n   10 seconds for a 2xx. If it doesn't get one:\n   [`400 webhook_ping_failed`](https://docs.apidata.one/errors/webhook_ping_failed/), with `result` saying what\n   happened (`timeout`, `http_status` with `statusCode`, `tls_failed`, `connection_failed` or\n   `redirect_not_followed`).\n\nSo your endpoint must be deployed and answering before you register it. This first ping is\nsigned with the new secret, which you receive only in the answer, so it can't be verified.\nThe rule for your endpoint ([in full](https://docs.apidata.one/concepts/webhooks/#receiving-a-webhook)):\n\n- **answer every `ping` with a 2xx**, whether or not its signature verifies, and never act on\n  one. A ping is a request whose `ApiData-Event-Type` header is `ping`, and it carries nothing;\n- **until the secret is stored on your server, answer every other request `503`.** It is\n  retried for 24 hours, so nothing is lost. A 2xx would mean \"received\", and that notice would\n  never come again;\n- **once the secret is stored, verify every other request**, and answer one that fails `400`.\n\nThis holds for a second endpoint as well: its registration ping is signed with its own new\nsecret, not with one you already hold.\n\n**Deliveries start as soon as the endpoint is saved.** It receives every notice given out from\nthen on, which can include one recorded a few seconds earlier, so store `secret` at once. To\ncheck that your verification works, send `POST …/{id}/test` and log whether its ping verified.\n\nResponse `201`: the object, plus the secret.\n\n```json\n{\n  \"id\": \"wh_…\",\n  \"url\": \"https://example.com/webhooks/apidata\",\n  \"eventTypes\": [\"saved_search.matches\", \"listing.removed\"],\n  \"description\": \"Production site\",\n  \"enabled\": true,\n  \"createdAt\": \"2026-11-13T15:00:00.000Z\",\n  \"secret\": \"whsec_…\"\n}\n```\n\n**Store `secret` now.** It is never shown again, by any route. If you lose it, delete the\nendpoint and create it again.\n\n- The 11th endpoint of an account is `409 limit_reached`.\n- An account may make 10 registrations and tests in any 10 minutes, and two registrations at\n  the same time. Past that: `429 rate_limited` with `Retry-After`. A request refused for its\n  body or its URL doesn't count.\n- `Idempotency-Key` is accepted ([idempotency](https://docs.apidata.one/concepts/idempotency/)). A repeat of a\n  registration that succeeded returns the same endpoint **without `secret`**: the secret is\n  never kept where it could be shown again. If the first answer was lost, delete the endpoint\n  and create it again. A repeat while the first request is still pinging is\n  `409 idempotency_conflict`.\n- Refused with `403 account_suspended` while the account is suspended.",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed",
            "webhook_destination_refused",
            "webhook_ping_failed",
            "webhook_url_invalid"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "409": [
            "idempotency_conflict",
            "limit_reached"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 2048,
                    "description": "https://, with a host name, at most 2,048 characters. It must answer a ping with a 2xx."
                  },
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "saved_search.matches",
                        "favorite.listing_updated",
                        "favorite.listing_removed",
                        "listing.removed",
                        "account.suspended",
                        "account.reinstated",
                        "data.stale"
                      ]
                    },
                    "minItems": 1,
                    "description": "The notice types the endpoint receives. Left out when creating: all seven."
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "description": "A note of your own, 1 to 200 characters."
                  }
                },
                "required": [
                  "url"
                ],
                "additionalProperties": false
              },
              "example": {
                "url": "https://example.com/webhooks/apidata",
                "eventTypes": [
                  "saved_search.matches",
                  "listing.removed"
                ],
                "description": "Production site"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Registered. The answer holds the secret, this once",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Idempotency-Replayed": {
                "$ref": "#/components/headers/Idempotency-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^wh_[A-Za-z0-9]{22}$",
                          "description": "\"wh_…\"."
                        },
                        "url": {
                          "type": "string",
                          "description": "The https:// address notices are sent to. It can not be changed."
                        },
                        "eventTypes": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "saved_search.matches",
                              "favorite.listing_updated",
                              "favorite.listing_removed",
                              "listing.removed",
                              "account.suspended",
                              "account.reinstated",
                              "data.stale"
                            ]
                          },
                          "description": "The notice types the endpoint receives."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "enabled": {
                          "type": "boolean",
                          "description": "false pauses the endpoint: nothing is sent to it, and what it misses is not sent later."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                        },
                        "secret": {
                          "type": "string",
                          "description": "\"whsec_…\": what signs requests to this endpoint. Shown this once; a repeat under the same Idempotency-Key leaves it out."
                        }
                      },
                      "required": [
                        "id",
                        "url",
                        "eventTypes",
                        "description",
                        "enabled",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed, webhook_destination_refused, webhook_ping_failed, webhook_url_invalid"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "409": {
            "$ref": "#/components/responses/Error",
            "description": "idempotency_conflict, limit_reached"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/webhook-endpoints/{id}": {
      "get": {
        "operationId": "getWebhookEndpoint",
        "summary": "One webhook endpoint",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint's ID, \"wh_…\".",
            "schema": {
              "type": "string"
            },
            "example": "wh_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "patch": {
        "operationId": "updateWebhookEndpoint",
        "summary": "Change an endpoint's notice types or description, or pause it",
        "description": "Send any of `eventTypes`, `description` and `enabled`; only what you send changes.\n`description: null` removes the description. An empty body is `400 validation_failed`. Response\n`200` with the object.\n\n- **The URL can't be changed.** Create a new endpoint for the new URL, then delete the old one.\n  Sending `url` is `400 validation_failed`.\n- `eventTypes` must name at least one type. To stop deliveries, set `enabled` to `false`.\n- Refused with `403 account_suspended` while the account is suspended.",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint's ID, \"wh_…\".",
            "schema": {
              "type": "string"
            },
            "example": "wh_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Send any of the three; only what you send changes. The address can not be changed.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "saved_search.matches",
                        "favorite.listing_updated",
                        "favorite.listing_removed",
                        "listing.removed",
                        "account.suspended",
                        "account.reinstated",
                        "data.stale"
                      ]
                    },
                    "minItems": 1,
                    "description": "The notice types the endpoint receives. Left out when creating: all seven."
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "A note of your own, 1 to 200 characters."
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "null removes it."
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "example": {
                "enabled": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The endpoint as it is now",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhookEndpoint",
        "summary": "Delete an endpoint, with its secret and its delivery list",
        "description": "`204` with no body, or `404 not_found`. Its secret and its delivery list go with it. Works\nwhile the account is suspended.",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint's ID, \"wh_…\".",
            "schema": {
              "type": "string"
            },
            "example": "wh_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/webhook-endpoints/{id}/deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "summary": "An endpoint's deliveries of the last 30 days, newest first",
        "description": "The endpoint's deliveries of the last 30 days, newest first.\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"dlv_…\",\n      \"eventId\": \"evt_…\",\n      \"type\": \"saved_search.matches\",\n      \"status\": \"pending\",\n      \"attempts\": 3,\n      \"lastAttemptAt\": \"2026-11-13T15:03:00.000Z\",\n      \"nextAttemptAt\": \"2026-11-13T15:07:00.000Z\",\n      \"lastResult\": \"http_status\",\n      \"lastStatusCode\": 500\n    }\n  ],\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"live\", \"page\": { \"limit\": 50, \"nextCursor\": null } }\n}\n```\n\n| `lastResult`            | What the last attempt came to                                                                    |\n| ----------------------- | -------------------------------------------------------------------------- |\n| `http_status`           | Your server answered. A 2xx succeeded; any other status failed             |\n| `timeout`               | No answer within 10 seconds                                                |\n| `refused_destination`   | The host resolved to an address that isn't public, so nothing was sent     |\n| `tls_failed`            | The TLS certificate did not verify for the URL's host name                 |\n| `connection_failed`     | The name did not resolve, or no connection could be made                   |\n| `redirect_not_followed` | Your server answered with a redirect. Redirects are never followed         |\n\nNothing your server answered is ever kept: no body, no headers, only the status code.\n\nPaging: `limit` is 1 to 100, 50 by default. When `meta.page.nextCursor` isn't `null`, send it\nback unchanged as `cursor` for the next page. A cursor this list didn't give is\n`400 validation_failed`.\n\nWorks while the account is suspended.",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint's ID, \"wh_…\".",
            "schema": {
              "type": "string"
            },
            "example": "wh_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Deliveries a page: 1 to 100. 50 when left out.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The nextCursor of the page before, exactly as it came.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of deliveries",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookDelivery"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "page": {
                          "$ref": "#/components/schemas/CursorPage"
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "page",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/webhook-endpoints/{id}/test": {
      "post": {
        "operationId": "testWebhookEndpoint",
        "summary": "Send a signed ping to an endpoint",
        "description": "Queues a signed `ping` to the endpoint and answers `202` at once with the ping's delivery:\n\n```json\n{\n  \"id\": \"dlv_…\",\n  \"eventId\": null,\n  \"type\": \"ping\",\n  \"status\": \"pending\",\n  \"attempts\": 0,\n  \"lastAttemptAt\": null,\n  \"nextAttemptAt\": \"2026-11-13T15:00:00.000Z\",\n  \"lastResult\": null,\n  \"lastStatusCode\": null\n}\n```\n\nThe ping is sent within seconds, once, and is never retried. Find its result in the delivery\nlist by `id`.\n\n- A disabled endpoint is `400 validation_failed`: enable it first.\n- Tests count toward the 10 registrations and tests in any 10 minutes.\n- Refused with `403 account_suspended` while the account is suspended.",
        "tags": [
          "Webhooks and notices"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint's ID, \"wh_…\".",
            "schema": {
              "type": "string"
            },
            "example": "wh_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
          }
        ],
        "responses": {
          "202": {
            "description": "Queued: the ping's delivery, to look up in the delivery list",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookDelivery"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/account": {
      "get": {
        "operationId": "getAccount",
        "summary": "Your account: its plan, status, website addresses and, for a secret key, its keys",
        "description": "Works while the account is suspended, so you can see why. While the account\nis pending, a live key works here only if it is the `sk_` key (a live `pk_` key gets\n`403 account_pending`, like everywhere else); test keys always work.\n\nWith a **`pk_`** key (public, so only what a site needs):\n\n```json\n{\n  \"data\": {\n    \"id\": \"6f1c…\",\n    \"type\": \"agent\",\n    \"tier\": \"basic\",\n    \"status\": \"active\",\n    \"environment\": \"test\",\n    \"domains\": [\"https://example.com\"],\n    \"complianceProfile\": {\n      \"brokerageDisplayName\": \"Example Realty LLC\",\n      \"agentLicenseStates\": [\"PA\", \"NJ\"],\n      \"participantBrokerageName\": \"Example Realty LLC\"\n    }\n  },\n  \"meta\": { \"requestId\": \"req_…\", \"environment\": \"test\" }\n}\n```\n\nWith an **`sk_`** key, the same plus:\n\n```json\n{\n  \"accountTier\": \"basic\",\n  \"suspendedAt\": null,\n  \"closedAt\": null,\n  \"verification\": { \"status\": \"unverified\", \"verifiedAt\": null },\n  \"brightIdentity\": { \"memberKey\": null, \"officeKey\": null, \"signingMainOfficeKey\": null, \"signingBrokerKey\": null },\n  \"createdAt\": \"2026-11-02T12:00:00.000Z\",\n  \"keys\": [\n    { \"id\": \"key_…\", \"kind\": \"sk\", \"env\": \"test\", \"last4\": \"Ab3d\", \"sandboxTier\": null,\n      \"possiblyExposed\": false, \"possiblyExposedAt\": null, \"revokedAt\": null, \"createdAt\": \"…\" }\n  ]\n}\n```\n\n`tier` is the tier this key gets: for a test key, the sandbox tier chosen when it was made;\notherwise the account tier. `keys[].possiblyExposed` is set when a secret key was seen from a\nbrowser; rotate such keys. Keys are never shown, only their `last4`.",
        "tags": [
          "Account"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "responses": {
          "200": {
            "description": "The account",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Account"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/compliance": {
      "get": {
        "operationId": "getCompliance",
        "summary": "Every disclosure text, for footers and email templates",
        "description": "[The block](https://docs.apidata.one/reference/compliance/#the-block) with both `closed` and `comingSoon` present, plus `completeness` (the IDX\nnon-participation notice), `emailSource` (\"Property information provided by Bright MLS\"),\n`withheld` (the notice for a withheld address) and `email`, the strings an email template needs\nin one object (`source`, `copyright`, `accuracy`, `personalUse`, `availability`, `lastUpdated`).\nThe response has the same shape on live and on the sandbox. The bundle holds no listing content,\nso it is served during the 12-hour stop too.",
        "tags": [
          "Account"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "responses": {
          "200": {
            "description": "The bundle",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ComplianceBundle"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warning"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/lookups/{name}": {
      "get": {
        "operationId": "getLookup",
        "summary": "One of the API's lists of values, with a label for each",
        "description": "The API's own lists of values, for building filters and labels. Not listing content, so served\nduring the 12-hour stop.\n\n| `name`              | Values                                                                                     |\n| ------------------- | ------------------------------------------------------------------------------------------ |\n| `statuses`          | `active`, `active_under_contract`, `coming_soon`, `pending`, `closed`                      |\n| `property-classes`  | `residential`, `residential_lease`, `land`, `farm`, `commercial_sale`, `commercial_lease`, `business_opportunity`, `manufactured_in_park`, `multi_family`, `other` |\n| `structure-types`   | `detached`, `twin_semi_detached`, `row_townhouse_interior`, `row_townhouse_end`, `condo_apartment`, `multi_family`, `deeded_parking`, `manufactured`, `other` |\n| `sorts`             | `price_asc`, `price_desc`, `newest`, `beds_desc`, `baths_desc`, `sqft_desc`, `close_date_desc`, `distance` |\n\n```json\n{ \"data\": { \"name\": \"statuses\", \"values\": [ { \"value\": \"active\", \"label\": \"Active\" }, { \"value\": \"coming_soon\", \"label\": \"Coming Soon\" } ] } }\n```\n\nAn unknown name is `404 not_found`.",
        "tags": [
          "Account"
        ],
        "security": [
          {
            "secretKey": []
          },
          {
            "publishableKey": []
          }
        ],
        "x-apidata": {
          "keys": "publishable or secret",
          "plan": "every plan",
          "environment": "live and sandbox",
          "consumer": "acts for the account",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "client_token_account_mismatch",
            "client_token_expired",
            "client_token_invalid",
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Which list.",
            "schema": {
              "type": "string",
              "enum": [
                "statuses",
                "property-classes",
                "structure-types",
                "sorts"
              ]
            },
            "example": "statuses"
          }
        ],
        "responses": {
          "200": {
            "description": "The list",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "values": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "value": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "value",
                              "label"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "name",
                        "values"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "client_token_account_mismatch, client_token_expired, client_token_invalid, invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/status": {
      "get": {
        "operationId": "getStatus",
        "summary": "Whether the service runs and how fresh its data is. No key needed",
        "description": "Service health and data freshness, for anyone: no key is read.\n\n```json\n{\n  \"data\": {\n    \"service\": \"ok\",\n    \"version\": \"0.9.0-m9\",\n    \"freshness\": {\n      \"live\": {\n        \"stale\": false,\n        \"stopActive\": false,\n        \"dataLastUpdatedAt\": \"2026-11-03T12:05:40.000Z\",\n        \"clocks\": {\n          \"delta\": { \"startedAt\": \"2026-11-03T12:05:00.000Z\", \"completedAt\": \"2026-11-03T12:05:40.000Z\", \"ageSeconds\": 95, \"stale\": false },\n          \"keySweep\": { \"startedAt\": \"2026-11-03T08:00:00.000Z\", \"completedAt\": \"2026-11-03T08:41:12.000Z\", \"ageSeconds\": 14795, \"stale\": false, \"purgeHeld\": false },\n          \"rosterSweep\": { \"startedAt\": \"2026-11-03T06:20:00.000Z\", \"completedAt\": \"2026-11-03T06:31:03.000Z\", \"ageSeconds\": 20795, \"stale\": false }\n        },\n        \"openHouses\": {\n          \"stale\": false,\n          \"clocks\": {\n            \"delta\": { \"startedAt\": \"2026-11-03T12:02:00.000Z\", \"completedAt\": \"2026-11-03T12:02:05.000Z\", \"ageSeconds\": 275, \"stale\": false },\n            \"recount\": { \"startedAt\": \"2026-11-03T11:30:00.000Z\", \"completedAt\": \"2026-11-03T11:30:20.000Z\", \"ageSeconds\": 2195, \"stale\": false }\n          }\n        }\n      },\n      \"test\": { \"stale\": false, \"stopActive\": false, \"exempt\": true, \"dataLastUpdatedAt\": \"2026-11-03T12:03:11.000Z\" }\n    }\n  },\n  \"meta\": { \"requestId\": \"req_…\" }\n}\n```\n\nLive listing data is served only while each of three pulls started less than 12 hours ago: the\nlast change check (`delta`), the last complete key sweep whose purges finished (`keySweep`), and\nthe last complete roster sweep (`rosterSweep`). Each clock reports when that pull started and\nfinished, its age in seconds, and whether it is stale. A clock that is missing or unreadable\ncounts as stale, so before replication has run every clock reads `startedAt: null, stale: true`.\n\n- `stale` is true when any clock is stale; `stopActive` says whether the 12-hour stop is on\n  (the same value today).\n- `dataLastUpdatedAt` is the completion time of the latest gap-free change check. It freezes at\n  its last value once the key sweep is more than 12 hours old, even while change checks keep\n  succeeding, and is never cleared.\n- `keySweep.purgeHeld` is true while a purge is held by the removal guardrails; a held purge\n  doesn't advance the sweep clock, so the clock then ages from the last sweep whose purges\n  finished.\n- Listing endpoints answer `500 data_stale` while the stop is on. Sandbox (`test`) keys are\n  never stopped: the sandbox's listings are made up and don't come from a sync.\n- `test.dataLastUpdatedAt` is the sandbox's own clock: when its change job last finished. That\n  job runs every 5 minutes, so the value is normally a few minutes old. It is `null` on a sandbox\n  whose change job has never run. Sandbox responses carry this same value in\n  `meta.dataLastUpdatedAt` and in the compliance block.\n- `openHouses` reports the open-house feed's two marks: `delta` (the last incremental pull\n  or full pull) and `recount` (the last full, count-checked pull). While either is past 12 hours\n  or missing, `openHouses.stale` is true: listing details are served with `openHouses: []` and the\n  warning `open_houses_stale`, and the `openHouse` search filter answers `500 data_stale` with\n  `details.feed: \"openHouses\"`. The marks never feed `stale` or `stopActive`.\n\n### The `geography` block\n\nBeside `freshness`, the body carries `geography`: the counts of the last geography build, or\n`null` before the first one. Counts only, never a shape.\n\n```json\n\"geography\": {\n  \"builtAt\": \"2026-11-05T14:00:00.000Z\",\n  \"vintage\": { \"tiger_county\": \"2026\", \"cb_county\": \"2025\", \"nces_district\": \"SY2024-25\", \"gnis\": \"current\" },\n  \"places\": { \"total\": 12900, \"byKind\": { \"state\": 7, \"county\": 304, \"municipality\": 3749, \"cdp\": 2450, \"community\": 480, \"zcta\": 4674, \"postal_city\": 2100, \"subdivision\": 60000, \"school_district\": 1286 } },\n  \"crosswalk\": { \"rows\": 8722, \"resolved\": 6300, \"review\": 27, \"gaps\": 180, \"deferred\": 2214 },\n  \"memberships\": { \"computedAt\": \"2026-11-05T14:30:00.000Z\", \"listings\": 1059157, \"withMemberships\": 1059157, \"located\": 1056086, \"suppressed\": 2544, \"noCoordinates\": 527, \"pointOutsideRegion\": 229 },\n  \"derived\": { \"succeededAt\": \"2026-11-07T07:55:00.000Z\", \"listingsWithoutCityPlace\": 0, \"listingsWithoutSubdivisionPlace\": 0, \"changedKeys\": 3 }\n}\n```\n\n- `vintage` names each boundary source's edition.\n- `crosswalk` summarises the owner's place index against the places: rows resolved to a place,\n  rows resolved but listed for review, documented gaps, and neighborhood rows that wait for a later release.\n- `memberships` says how many listings carry place memberships, how many were placed by their\n  coordinates, and how many hidden-address or no-coordinate listings were placed by their own\n  fields only. `pointOutsideRegion` counts listings whose point lies in no county of the seven\n  jurisdictions: they are placed by their own fields, never by that point.\n- `derived` is the daily run that gives newly seen cities and subdivisions their places: when it\n  last succeeded, and the two counts it took as it ended, `listingsWithoutCityPlace` and\n  `listingsWithoutSubdivisionPlace`: the listings the run left naming a city or subdivision\n  with no place (placeholders don't count). 0 is expected. A listing that brings a new city or\n  subdivision after a run waits for the next run, up to a day, and isn't counted in the\n  meantime. `null` until the first run.",
        "tags": [
          "Account"
        ],
        "security": [],
        "x-apidata": {
          "keys": "none"
        },
        "x-apidata-errors": {
          "400": [
            "validation_failed"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error"
          ]
        },
        "responses": {
          "200": {
            "description": "The status",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Status"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        }
                      },
                      "required": [
                        "requestId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "validation_failed"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "description": "The database could not be read: the same body, with service \"database_unreachable\"; or an error: internal_error",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/Status"
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string",
                              "pattern": "^req_[A-Za-z0-9]{22}$",
                              "description": "The ID of this request. Send it when you ask about an answer."
                            }
                          },
                          "required": [
                            "requestId"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "data",
                        "meta"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/triggers": {
      "post": {
        "operationId": "createSandboxTrigger",
        "summary": "Make a change happen in the sandbox now: a match, a favorite that changes, a removal",
        "description": "Send your `sk_test_` key and `X-Client-Id`, with one of three bodies:\n\n| `event`                    | Also send                                                                                   | What happens                                                           |\n| -------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |\n| `saved_search.matches`     | `savedSearchId`: one of this consumer's saved searches                                      | A new made-up listing appears that matches the search.                 |\n| `favorite.listing_updated` | `listingKey`: one of this consumer's favorites; `kind`: `price`, `status`, `photos` or `open_house` | That change is made to that listing.                                   |\n| `listing.removed`          | `listingKey`: a listing that a trigger of your account made                                 | The listing is removed, as a listing that leaves the market on live is. |\n\nThe answer is `202`:\n\n```json\n{\n  \"data\": {\n    \"id\": \"trg_…\",\n    \"event\": \"saved_search.matches\",\n    \"listingKey\": \"SBXT…\",\n    \"change\": { \"kind\": \"new_listing\", \"status\": \"active\" },\n    \"notice\": \"instant\",\n    \"status\": \"pending\"\n  }\n}\n```\n\n- `listingKey` is the listing that is made or changed. Listings made by a trigger have keys that\n  start `SBXT`.\n- `notice` is `instant` when the notice follows within about 10 seconds, or `next_digest` when\n  the saved search's `alertFrequency` is `daily` or `weekly`: then the listing is made now and\n  the notice comes with the search's next digest.\n- A `status` change follows a fixed order: Active, Active Under Contract, Pending, Closed. Coming\n  Soon goes to Active.",
        "tags": [
          "Sandbox"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "sandbox only",
          "consumer": "acts for one consumer",
          "whileSuspended": "refused",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "account_suspended",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "404": [
            "listing_not_found",
            "not_found"
          ],
          "409": [
            "sandbox_listing_protected",
            "sandbox_trigger_not_possible",
            "saved_search_not_active"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event": {
                    "type": "string",
                    "enum": [
                      "saved_search.matches",
                      "favorite.listing_updated",
                      "listing.removed"
                    ]
                  },
                  "savedSearchId": {
                    "type": "string",
                    "description": "With saved_search.matches: one of this consumer's saved searches."
                  },
                  "listingKey": {
                    "type": "string",
                    "description": "With favorite.listing_updated: one of this consumer's favorites. With listing.removed: a listing a trigger of your account made."
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "price",
                      "status",
                      "photos",
                      "open_house"
                    ],
                    "description": "With favorite.listing_updated: which change to make."
                  }
                },
                "required": [
                  "event"
                ],
                "additionalProperties": false
              },
              "example": {
                "event": "saved_search.matches",
                "savedSearchId": "ss_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted: the change is made within seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SandboxTriggerAccepted"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "listing_not_found, not_found"
          },
          "409": {
            "$ref": "#/components/responses/Error",
            "description": "sandbox_listing_protected, sandbox_trigger_not_possible, saved_search_not_active"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    },
    "/v1/sandbox/triggers/{id}": {
      "get": {
        "operationId": "getSandboxTrigger",
        "summary": "How a sandbox trigger ended",
        "description": "With the same key and `X-Client-Id`, shows how a trigger ended:\n\n- `status`: `pending`, `done` or `failed`;\n- `noticeId`: the ID of the notice the change produced, once `done` (the same ID as in\n  `GET /v1/events` and in the webhook delivery); `null` for `next_digest`;\n- `reason`: why a `failed` trigger could not be completed\n  ([when a trigger fails](https://docs.apidata.one/reference/sandbox-triggers/#when-a-trigger-fails)).",
        "tags": [
          "Sandbox"
        ],
        "security": [
          {
            "secretKey": []
          }
        ],
        "x-apidata": {
          "keys": "secret only",
          "plan": "every plan",
          "environment": "sandbox only",
          "consumer": "acts for one consumer",
          "whileSuspended": "works",
          "duringADataStop": "works"
        },
        "x-apidata-errors": {
          "400": [
            "client_id_must_be_opaque",
            "validation_failed"
          ],
          "401": [
            "invalid_api_key",
            "key_revoked",
            "missing_api_key"
          ],
          "403": [
            "account_pending",
            "origin_not_allowed",
            "secret_key_in_browser",
            "secret_key_required"
          ],
          "404": [
            "not_found"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal_error",
            "temporarily_unavailable"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The trigger's ID, \"trg_…\", from the answer that accepted it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ClientToken"
          },
          {
            "$ref": "#/components/parameters/ClientId"
          }
        ],
        "responses": {
          "200": {
            "description": "The trigger",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SandboxTrigger"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "pattern": "^req_[A-Za-z0-9]{22}$",
                          "description": "The ID of this request. Send it when you ask about an answer."
                        },
                        "environment": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ],
                          "description": "The key's environment: live data, or the sandbox."
                        }
                      },
                      "required": [
                        "requestId",
                        "environment"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error",
            "description": "client_id_must_be_opaque, validation_failed"
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "invalid_api_key, key_revoked, missing_api_key"
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "account_pending, origin_not_allowed, secret_key_in_browser, secret_key_required"
          },
          "404": {
            "$ref": "#/components/responses/Error",
            "description": "not_found"
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/Error",
            "description": "internal_error, temporarily_unavailable"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "secretKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "A secret key, `sk_test_…` or `sk_live_…`, as `Authorization: Bearer <key>`. On your server only: a secret key that arrives from a browser is refused and flagged."
      },
      "publishableKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "A publishable key, `pk_test_…` or `pk_live_…`, as `Authorization: Bearer <key>`. For the browser: it works from your account's website addresses only."
      }
    },
    "parameters": {
      "search.status": {
        "name": "status",
        "in": "query",
        "required": false,
        "description": "Statuses, separated by commas. Left out: active.",
        "schema": {
          "type": "string"
        },
        "example": "active,pending"
      },
      "search.propertyClass": {
        "name": "propertyClass",
        "in": "query",
        "required": false,
        "description": "Property classes, separated by commas.",
        "schema": {
          "type": "string"
        },
        "example": "residential,land"
      },
      "search.structureType": {
        "name": "structureType",
        "in": "query",
        "required": false,
        "description": "Structure types, separated by commas.",
        "schema": {
          "type": "string"
        },
        "example": "detached,condo_apartment"
      },
      "search.price.min": {
        "name": "price.min",
        "in": "query",
        "required": false,
        "description": "The lowest list price, in US dollars.",
        "schema": {
          "type": "string"
        },
        "example": "300000"
      },
      "search.price.max": {
        "name": "price.max",
        "in": "query",
        "required": false,
        "description": "The highest list price, in US dollars.",
        "schema": {
          "type": "string"
        },
        "example": "450000"
      },
      "search.beds.min": {
        "name": "beds.min",
        "in": "query",
        "required": false,
        "description": "The lowest number of bedrooms.",
        "schema": {
          "type": "string"
        },
        "example": "3"
      },
      "search.beds.max": {
        "name": "beds.max",
        "in": "query",
        "required": false,
        "description": "The highest number of bedrooms.",
        "schema": {
          "type": "string"
        },
        "example": "5"
      },
      "search.baths.min": {
        "name": "baths.min",
        "in": "query",
        "required": false,
        "description": "The lowest number of baths, a half bath counting half.",
        "schema": {
          "type": "string"
        },
        "example": "2"
      },
      "search.baths.max": {
        "name": "baths.max",
        "in": "query",
        "required": false,
        "description": "The highest number of baths, a half bath counting half.",
        "schema": {
          "type": "string"
        },
        "example": "3.5"
      },
      "search.livingAreaSqft.min": {
        "name": "livingAreaSqft.min",
        "in": "query",
        "required": false,
        "description": "The lowest living area, in square feet.",
        "schema": {
          "type": "string"
        },
        "example": "1500"
      },
      "search.livingAreaSqft.max": {
        "name": "livingAreaSqft.max",
        "in": "query",
        "required": false,
        "description": "The highest living area, in square feet.",
        "schema": {
          "type": "string"
        },
        "example": "3000"
      },
      "search.lotSizeAcres.min": {
        "name": "lotSizeAcres.min",
        "in": "query",
        "required": false,
        "description": "The lowest lot size, in acres.",
        "schema": {
          "type": "string"
        },
        "example": "0.25"
      },
      "search.lotSizeAcres.max": {
        "name": "lotSizeAcres.max",
        "in": "query",
        "required": false,
        "description": "The highest lot size, in acres.",
        "schema": {
          "type": "string"
        },
        "example": "2"
      },
      "search.yearBuilt.min": {
        "name": "yearBuilt.min",
        "in": "query",
        "required": false,
        "description": "The lowest year built.",
        "schema": {
          "type": "string"
        },
        "example": "1990"
      },
      "search.yearBuilt.max": {
        "name": "yearBuilt.max",
        "in": "query",
        "required": false,
        "description": "The highest year built.",
        "schema": {
          "type": "string"
        },
        "example": "2020"
      },
      "search.closeDate.from": {
        "name": "closeDate.from",
        "in": "query",
        "required": false,
        "description": "Closed on or after this day.",
        "schema": {
          "type": "string"
        },
        "example": "2026-01-01"
      },
      "search.closeDate.to": {
        "name": "closeDate.to",
        "in": "query",
        "required": false,
        "description": "Closed on or before this day.",
        "schema": {
          "type": "string"
        },
        "example": "2026-06-30"
      },
      "search.keywords": {
        "name": "keywords",
        "in": "query",
        "required": false,
        "description": "Words searched in the public remarks and the feature lists.",
        "schema": {
          "type": "string"
        },
        "example": "fenced yard"
      },
      "search.location.placeIds": {
        "name": "location.placeIds",
        "in": "query",
        "required": false,
        "description": "Place IDs, separated by commas: any kind on every plan, except school districts, which are Premium.",
        "schema": {
          "type": "string"
        },
        "example": "pl_…,pl_…"
      },
      "search.location.postalCodes": {
        "name": "location.postalCodes",
        "in": "query",
        "required": false,
        "description": "ZIP codes, separated by commas.",
        "schema": {
          "type": "string"
        },
        "example": "19003,19041"
      },
      "search.location.cities": {
        "name": "location.cities",
        "in": "query",
        "required": false,
        "description": "Cities as Name|ST, separated by commas.",
        "schema": {
          "type": "string"
        },
        "example": "Bryn Mawr|PA,Dover|DE"
      },
      "search.location.subdivisions": {
        "name": "location.subdivisions",
        "in": "query",
        "required": false,
        "description": "Subdivisions as Name|ST, separated by commas.",
        "schema": {
          "type": "string"
        },
        "example": "Wynnewood Park|PA"
      },
      "search.location.bbox": {
        "name": "location.bbox",
        "in": "query",
        "required": false,
        "description": "minLng,minLat,maxLng,maxLat.",
        "schema": {
          "type": "string"
        },
        "example": "-75.42,40.00,-75.30,40.08"
      },
      "search.location.radius.center": {
        "name": "location.radius.center",
        "in": "query",
        "required": false,
        "description": "lng,lat.",
        "schema": {
          "type": "string"
        },
        "example": "-75.3,40.01"
      },
      "search.location.radius.meters": {
        "name": "location.radius.meters",
        "in": "query",
        "required": false,
        "description": "The radius in metres. Alone, with one community among the place IDs: that community's radius, from 400 to 8000.",
        "schema": {
          "type": "string"
        },
        "example": "1609"
      },
      "search.location.shapeId": {
        "name": "location.shapeId",
        "in": "query",
        "required": false,
        "description": "Premium. A saved shape's ID, of the consumer the request acts for.",
        "schema": {
          "type": "string"
        },
        "example": "shp_…"
      },
      "search.listAgentMlsId": {
        "name": "listAgentMlsId",
        "in": "query",
        "required": false,
        "description": "The listing or co-listing agent's MLS ID.",
        "schema": {
          "type": "string"
        },
        "example": "3012345"
      },
      "search.listOfficeMlsId": {
        "name": "listOfficeMlsId",
        "in": "query",
        "required": false,
        "description": "The listing or co-listing office's MLS ID.",
        "schema": {
          "type": "string"
        },
        "example": "OFFICE1"
      },
      "search.openHouse.from": {
        "name": "openHouse.from",
        "in": "query",
        "required": false,
        "description": "An open house on or after this day.",
        "schema": {
          "type": "string"
        },
        "example": "2026-12-05"
      },
      "search.openHouse.to": {
        "name": "openHouse.to",
        "in": "query",
        "required": false,
        "description": "An open house on or before this day.",
        "schema": {
          "type": "string"
        },
        "example": "2026-12-06"
      },
      "search.modifiedSince": {
        "name": "modifiedSince",
        "in": "query",
        "required": false,
        "description": "Changed at or after this instant.",
        "schema": {
          "type": "string"
        },
        "example": "2026-11-01T00:00:00Z"
      },
      "search.hasBasement": {
        "name": "hasBasement",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.hasFireplace": {
        "name": "hasFireplace",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.hasPool": {
        "name": "hasPool",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.seniorCommunity": {
        "name": "seniorCommunity",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.petsAllowed": {
        "name": "petsAllowed",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.newConstruction": {
        "name": "newConstruction",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.waterfront": {
        "name": "waterfront",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.garage": {
        "name": "garage",
        "in": "query",
        "required": false,
        "description": "true to require it.",
        "schema": {
          "type": "string"
        },
        "example": "true"
      },
      "search.sort": {
        "name": "sort",
        "in": "query",
        "required": false,
        "description": "One of price_asc, price_desc, newest, beds_desc, baths_desc, sqft_desc, close_date_desc, distance. Left out: price_asc.",
        "schema": {
          "type": "string"
        },
        "example": "newest"
      },
      "search.limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "1 to 100. Left out: 24.",
        "schema": {
          "type": "string"
        },
        "example": "24"
      },
      "search.cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "description": "The previous page's nextCursor.",
        "schema": {
          "type": "string"
        },
        "example": "c_…"
      },
      "ClientToken": {
        "name": "X-Client-Token",
        "in": "header",
        "required": false,
        "description": "With a publishable key: a token your server minted for the consumer (POST /v1/client-tokens). Required with a publishable key.",
        "schema": {
          "type": "string"
        }
      },
      "ClientId": {
        "name": "X-Client-Id",
        "in": "header",
        "required": false,
        "description": "With a secret key: your own opaque ID for the consumer. Required with a secret key.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,64}$"
        }
      },
      "ClientTokenOptional": {
        "name": "X-Client-Token",
        "in": "header",
        "required": false,
        "description": "With a publishable key: a token your server minted for the consumer (POST /v1/client-tokens). Optional: with it, each listing says whether it is a favorite of theirs.",
        "schema": {
          "type": "string"
        }
      },
      "ClientIdOptional": {
        "name": "X-Client-Id",
        "in": "header",
        "required": false,
        "description": "With a secret key: your own opaque ID for the consumer. Optional: with it, each listing says whether it is a favorite of theirs.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,64}$"
        }
      },
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "A new random value for this action, such as a UUID: a repeat with the same value and the same request gets the first answer again, and nothing is saved twice.",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        }
      }
    },
    "headers": {
      "X-Request-Id": {
        "description": "The ID of this request, as in the body.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Limit": {
        "description": "The burst of the tightest rate-limit bucket that applied.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Remaining": {
        "description": "Requests left in it.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until it is full again.",
        "schema": {
          "type": "integer"
        }
      },
      "Retry-After": {
        "description": "On a 429, and on a 500 whose code is data_stale or temporarily_unavailable: seconds to wait before sending the request again.",
        "schema": {
          "type": "integer"
        }
      },
      "Idempotency-Replayed": {
        "description": "\"true\" on a repeat that was answered from the stored answer.",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "Error": {
        "description": "An error. `error.code` says which; the codes a status can hold for a route are in that route's `x-apidata-errors`.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimit-Limit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimit-Reset"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Account": {
        "type": "object",
        "description": "Your account. A publishable key sees what a site needs; a secret key also sees the rest, its keys among them.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The account's ID."
          },
          "type": {
            "type": "string",
            "enum": [
              "agent",
              "broker"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "basic",
              "premium"
            ],
            "description": "The plan this key gets: for a test key, the one chosen when it was made."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "active",
              "suspended",
              "closed"
            ]
          },
          "environment": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ]
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The website addresses a publishable key works from, each a scheme, host and port."
          },
          "complianceProfile": {
            "type": "object",
            "properties": {
              "brokerageDisplayName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Your brokerage, as shown in the disclosures."
              },
              "agentLicenseStates": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "participantBrokerageName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The brokerage that takes part in the IDX program."
              }
            },
            "required": [
              "brokerageDisplayName",
              "agentLicenseStates",
              "participantBrokerageName"
            ],
            "additionalProperties": false
          },
          "accountTier": {
            "type": "string",
            "enum": [
              "basic",
              "premium"
            ],
            "description": "The account's own plan."
          },
          "suspendedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "closedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "verification": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "verifiedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
              }
            },
            "required": [
              "status",
              "verifiedAt"
            ],
            "additionalProperties": false
          },
          "brightIdentity": {
            "type": "object",
            "properties": {
              "memberKey": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "officeKey": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "signingMainOfficeKey": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "signingBrokerKey": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "memberKey",
              "officeKey",
              "signingMainOfficeKey",
              "signingBrokerKey"
            ],
            "additionalProperties": false
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "keys": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "\"key_…\"."
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "pk",
                    "sk"
                  ]
                },
                "env": {
                  "type": "string",
                  "enum": [
                    "live",
                    "test"
                  ]
                },
                "last4": {
                  "type": "string",
                  "description": "The key's last four characters. A key itself is never shown."
                },
                "sandboxTier": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "basic",
                        "premium"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "possiblyExposed": {
                  "type": "boolean",
                  "description": "True when the secret key was seen from a browser: replace it."
                },
                "possiblyExposedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                },
                "revokedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                }
              },
              "required": [
                "id",
                "kind",
                "env",
                "last4",
                "sandboxTier",
                "possiblyExposed",
                "possiblyExposedAt",
                "revokedAt",
                "createdAt"
              ],
              "additionalProperties": false
            },
            "description": "The account's keys."
          }
        },
        "required": [
          "id",
          "type",
          "tier",
          "status",
          "environment",
          "domains",
          "complianceProfile"
        ],
        "additionalProperties": false
      },
      "Compliance": {
        "type": "object",
        "description": "The notices Bright requires beside listing content, filled in for your account. Show the texts as given; never copy them into a template.",
        "properties": {
          "copyright": {
            "type": "string",
            "description": "Show on every page with a listing."
          },
          "accuracy": {
            "type": "string",
            "description": "Show on every page with a listing."
          },
          "idxSource": {
            "type": "string",
            "description": "Show on the home page or every search page. It names your brokerage."
          },
          "personalUse": {
            "type": "string",
            "description": "Show on the home page or every search page."
          },
          "availability": {
            "type": "string",
            "description": "Show on the home page or every search page."
          },
          "lastUpdated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The time of the last successful data update, in Eastern time, ready to show: \"Data last updated: 11/10/2026 at 9:59 AM ET\". Show on every page with a listing. Null when there is no such time to give (in the sandbox, until its first change has run): then show nothing in its place, never a time of your own."
          },
          "dataLastUpdatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "The same instant, in ISO 8601."
          },
          "advertisingBrokerage": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Your brokerage, as licensed. Show it on every page with a listing."
              },
              "licenseStates": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "For an agent: the states of licensure, to show with the name."
              }
            },
            "required": [
              "name",
              "licenseStates"
            ],
            "additionalProperties": false
          },
          "closed": {
            "type": "object",
            "description": "Present only when the answer holds a Closed listing: its label and the two statements to show with it.",
            "properties": {
              "label": {
                "type": "string"
              },
              "notAppraisal": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              }
            },
            "required": [
              "label",
              "notAppraisal",
              "provider"
            ],
            "additionalProperties": false
          },
          "comingSoon": {
            "type": "object",
            "description": "Present only when the answer holds a Coming Soon listing: its label.",
            "properties": {
              "label": {
                "type": "string"
              }
            },
            "required": [
              "label"
            ],
            "additionalProperties": false
          },
          "renderingRules": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Where each text goes on a page, in words."
          },
          "poweredBy": {
            "type": "string",
            "description": "Optional to show."
          }
        },
        "required": [
          "copyright",
          "accuracy",
          "idxSource",
          "personalUse",
          "availability",
          "lastUpdated",
          "dataLastUpdatedAt",
          "advertisingBrokerage",
          "renderingRules",
          "poweredBy"
        ],
        "additionalProperties": false
      },
      "ComplianceBundle": {
        "type": "object",
        "description": "Every disclosure text, for site footers and email templates: the compliance block with both `closed` and `comingSoon`, and the texts an email needs.",
        "properties": {
          "copyright": {
            "type": "string",
            "description": "Show on every page with a listing."
          },
          "accuracy": {
            "type": "string",
            "description": "Show on every page with a listing."
          },
          "idxSource": {
            "type": "string",
            "description": "Show on the home page or every search page. It names your brokerage."
          },
          "personalUse": {
            "type": "string",
            "description": "Show on the home page or every search page."
          },
          "availability": {
            "type": "string",
            "description": "Show on the home page or every search page."
          },
          "lastUpdated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The time of the last successful data update, in Eastern time, ready to show: \"Data last updated: 11/10/2026 at 9:59 AM ET\". Show on every page with a listing. Null when there is no such time to give (in the sandbox, until its first change has run): then show nothing in its place, never a time of your own."
          },
          "dataLastUpdatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "The same instant, in ISO 8601."
          },
          "advertisingBrokerage": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Your brokerage, as licensed. Show it on every page with a listing."
              },
              "licenseStates": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "For an agent: the states of licensure, to show with the name."
              }
            },
            "required": [
              "name",
              "licenseStates"
            ],
            "additionalProperties": false
          },
          "closed": {
            "type": "object",
            "description": "Present only when the answer holds a Closed listing: its label and the two statements to show with it.",
            "properties": {
              "label": {
                "type": "string"
              },
              "notAppraisal": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              }
            },
            "required": [
              "label",
              "notAppraisal",
              "provider"
            ],
            "additionalProperties": false
          },
          "comingSoon": {
            "type": "object",
            "description": "Present only when the answer holds a Coming Soon listing: its label.",
            "properties": {
              "label": {
                "type": "string"
              }
            },
            "required": [
              "label"
            ],
            "additionalProperties": false
          },
          "renderingRules": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Where each text goes on a page, in words."
          },
          "poweredBy": {
            "type": "string",
            "description": "Optional to show."
          },
          "completeness": {
            "type": "string",
            "description": "The notice for a site that claims to show every listing."
          },
          "emailSource": {
            "type": "string",
            "description": "\"Property information provided by Bright MLS\"."
          },
          "withheld": {
            "type": "string",
            "description": "The notice shown in place of a withheld address."
          },
          "email": {
            "type": "object",
            "description": "The texts an email with listing content must carry.",
            "properties": {
              "source": {
                "type": "string"
              },
              "copyright": {
                "type": "string"
              },
              "accuracy": {
                "type": "string"
              },
              "personalUse": {
                "type": "string"
              },
              "availability": {
                "type": "string"
              },
              "lastUpdated": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "source",
              "copyright",
              "accuracy",
              "personalUse",
              "availability",
              "lastUpdated"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "copyright",
          "accuracy",
          "idxSource",
          "personalUse",
          "availability",
          "lastUpdated",
          "dataLastUpdatedAt",
          "advertisingBrokerage",
          "closed",
          "comingSoon",
          "renderingRules",
          "poweredBy",
          "completeness",
          "emailSource",
          "withheld",
          "email"
        ],
        "additionalProperties": false
      },
      "CursorPage": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Send it as `cursor` for the next page. Null on the last page."
          }
        },
        "required": [
          "limit",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "DistrictRef": {
        "type": "object",
        "properties": {
          "placeId": {
            "type": "string",
            "description": "The district as a place: search it with location.placeIds."
          },
          "displayName": {
            "type": "string"
          },
          "districtType": {
            "type": [
              "string",
              "null"
            ],
            "description": "unified, elementary or secondary."
          },
          "grades": {
            "type": [
              "string",
              "null"
            ],
            "description": "The lowest and highest grade served, such as \"KG-12\"."
          }
        },
        "required": [
          "placeId",
          "displayName",
          "districtType",
          "grades"
        ],
        "additionalProperties": false
      },
      "DrawnShape": {
        "type": "object",
        "description": "A GeoJSON Polygon with exactly one ring: closed, 3 to 200 corners, not crossing itself, at most 5,000 km². Positions are [longitude, latitude].",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Polygon"
            ]
          },
          "coordinates": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1,
            "items": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 2,
                "maxItems": 2
              }
            }
          }
        },
        "required": [
          "type",
          "coordinates"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "validation_failed",
                  "client_id_must_be_opaque",
                  "shape_invalid",
                  "shape_too_large",
                  "pagination_limit_reached",
                  "webhook_url_invalid",
                  "webhook_destination_refused",
                  "webhook_ping_failed",
                  "missing_api_key",
                  "invalid_api_key",
                  "key_revoked",
                  "client_token_required",
                  "client_token_invalid",
                  "client_token_expired",
                  "client_token_account_mismatch",
                  "secret_key_in_browser",
                  "secret_key_required",
                  "origin_not_allowed",
                  "tier_insufficient",
                  "account_suspended",
                  "account_pending",
                  "listing_not_found",
                  "not_found",
                  "idempotency_conflict",
                  "limit_reached",
                  "shape_in_use",
                  "sandbox_listing_protected",
                  "saved_search_not_active",
                  "sandbox_trigger_not_possible",
                  "rate_limited",
                  "quota_exceeded",
                  "data_stale",
                  "temporarily_unavailable",
                  "internal_error"
                ],
                "description": "What went wrong. Decide by this, never by the message."
              },
              "message": {
                "type": "string",
                "description": "What is wrong, in a sentence."
              },
              "fix": {
                "type": "string",
                "description": "Exactly what to do about it."
              },
              "docs": {
                "type": "string",
                "description": "The address of this code's page in the docs."
              },
              "requestId": {
                "type": "string",
                "description": "The ID of this request. Send it when you ask about an answer."
              },
              "fields": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FieldProblem"
                },
                "description": "For validation_failed: every input that was wrong, at once."
              }
            },
            "required": [
              "code",
              "message",
              "docs",
              "requestId"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "Favorite": {
        "type": "object",
        "description": "One listing a consumer saved. It holds the listing's key and nothing else of it.",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^fav_[A-Za-z0-9]{22}$",
            "description": "The favorite's ID, \"fav_…\"."
          },
          "listingKey": {
            "type": "string",
            "description": "The listing that was saved."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "required": [
          "id",
          "listingKey",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "FieldProblem": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Which input, such as `price.min`, `body.listingKey` or `header.Idempotency-Key`."
          },
          "problem": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "problem"
        ],
        "additionalProperties": false
      },
      "ListingDetail": {
        "type": "object",
        "description": "A listing in full, as its detail route returns it.",
        "properties": {
          "listingKey": {
            "type": "string",
            "description": "The listing's lasting key. Use it in your page addresses and to fetch the listing. Treat it as text."
          },
          "mlsNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "The MLS number shown to the public. It can change; the key does not."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "active_under_contract",
              "coming_soon",
              "pending",
              "closed"
            ]
          },
          "statusLabel": {
            "type": "string",
            "description": "The status in words, such as \"Active Under Contract\"."
          },
          "propertyClass": {
            "type": "string",
            "enum": [
              "residential",
              "residential_lease",
              "land",
              "farm",
              "commercial_sale",
              "commercial_lease",
              "business_opportunity",
              "manufactured_in_park",
              "multi_family",
              "other"
            ]
          },
          "structureType": {
            "type": "string",
            "enum": [
              "detached",
              "twin_semi_detached",
              "row_townhouse_interior",
              "row_townhouse_end",
              "condo_apartment",
              "multi_family",
              "deeded_parking",
              "manufactured",
              "other"
            ]
          },
          "price": {
            "type": "object",
            "properties": {
              "list": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The list price in US dollars. Null when the listing has none, or when its prices may not be shown."
              },
              "close": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The sale price. Only for a Closed listing; null otherwise."
              }
            },
            "required": [
              "list",
              "close"
            ],
            "additionalProperties": false
          },
          "address": {
            "anyOf": [
              {
                "type": "object",
                "description": "The address, when it may be shown. Null when the seller asked that it be hidden.",
                "properties": {
                  "line1": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The street address, as Bright sends it."
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The postal city, in title case."
                  },
                  "state": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The two-letter state code."
                  },
                  "postalCode": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "county": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The county, in title case."
                  }
                },
                "required": [
                  "line1",
                  "unit",
                  "city",
                  "state",
                  "postalCode",
                  "county"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "addressDisplay": {
            "type": "string",
            "enum": [
              "full",
              "withheld"
            ],
            "description": "\"withheld\": the seller asked that the address be hidden. The address and the location are then null."
          },
          "addressNotice": {
            "type": "string",
            "description": "Only when the address is withheld: the text to show in its place (\"Contact Listing Agent for Additional Information\")."
          },
          "location": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lng": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lng"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The point for a map. Null when the address is withheld, when the listing has no coordinates, and when its point lies outside the seven jurisdictions."
          },
          "beds": {
            "type": [
              "integer",
              "null"
            ]
          },
          "baths": {
            "type": "object",
            "properties": {
              "total": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Full baths plus half a bath for each half bath."
              },
              "full": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "half": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "total",
              "full",
              "half"
            ],
            "additionalProperties": false
          },
          "livingAreaSqft": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lotSizeAcres": {
            "type": [
              "number",
              "null"
            ]
          },
          "lotSizeSqft": {
            "type": [
              "number",
              "null"
            ]
          },
          "yearBuilt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "daysOnMarket": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Null for a Coming Soon listing, and when the listing does not allow it to be shown. Never compute it yourself."
          },
          "expectedOnMarketDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "For a Coming Soon listing: the day it is expected on the market."
          },
          "closeDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "The day of the sale. Only for a Closed listing; null otherwise."
          },
          "photos": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 0,
                "description": "How many photos the gallery has."
              },
              "primary": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PhotoUrls"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The first photo, or null when there is none."
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "mediaKey": {
                      "type": "string"
                    },
                    "order": {
                      "type": "integer"
                    },
                    "caption": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "urls": {
                      "$ref": "#/components/schemas/PhotoUrls"
                    }
                  },
                  "required": [
                    "mediaKey",
                    "order",
                    "caption",
                    "urls"
                  ],
                  "additionalProperties": false
                },
                "description": "Every photo of the gallery, in display order."
              }
            },
            "required": [
              "count",
              "primary",
              "items"
            ],
            "additionalProperties": false
          },
          "attribution": {
            "type": "object",
            "description": "Who must be credited for the listing.",
            "properties": {
              "listOfficeName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The listing office. Show it on every card and thumbnail, and near the top of the detail page."
              },
              "listOfficePhone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listOfficeEmail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listAgentName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listAgentPhone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listAgentEmail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "coListOfficeName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "coListAgentName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buyerOfficeName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The selling office. Only for a Closed listing; null otherwise."
              },
              "buyerAgentName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The selling agent. Only for a Closed listing; null otherwise."
              }
            },
            "required": [
              "listOfficeName",
              "listOfficePhone",
              "listOfficeEmail",
              "listAgentName",
              "listAgentPhone",
              "listAgentEmail",
              "coListOfficeName",
              "coListAgentName",
              "buyerOfficeName",
              "buyerAgentName"
            ],
            "additionalProperties": false
          },
          "permissions": {
            "type": "object",
            "description": "What the listing's seller allows beside the listing.",
            "properties": {
              "avmDisplay": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "False: show no estimated value for this listing, from any source."
              },
              "consumerComments": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "False: show no visitor comments or reviews on this listing."
              }
            },
            "required": [
              "avmDisplay",
              "consumerComments"
            ],
            "additionalProperties": false
          },
          "slug": {
            "type": "string",
            "description": "Words for a page address, ending in the listing key: the street, city, state and ZIP code, or the city and state alone when the address is withheld."
          },
          "isFavorite": {
            "type": "boolean",
            "description": "Only when the request acts for one consumer (a client token, or X-Client-Id): whether the listing is among that consumer's favorites."
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "When the listing last changed at Bright."
          },
          "remarks": {
            "type": [
              "string",
              "null"
            ],
            "description": "The public remarks."
          },
          "directions": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only when the address is shown; null otherwise."
          },
          "taxId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only when the address is shown; null otherwise."
          },
          "virtualTourUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The listing's tour link. Null for a Coming Soon listing, and for a Closed one whose seller hides its media."
          },
          "media": {
            "type": "object",
            "properties": {
              "links": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MediaLink"
                },
                "description": "The virtual tours and videos, in display order. Empty for a Coming Soon listing and under the off-market hide."
              }
            },
            "required": [
              "links"
            ],
            "additionalProperties": false
          },
          "features": {
            "type": "object",
            "description": "The listing's other facts, by Bright's own field names in lowerCamelCase with the YN suffix kept (basementYN, heating, taxAnnualAmount): booleans, numbers, strings and lists of display strings. A fact the listing does not have is left out.",
            "properties": {
              "associationYN": {
                "type": "boolean"
              },
              "associationFee": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "associationFeeFrequency": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "taxAnnualAmount": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "taxYear": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "newConstructionYN": {
                "type": "boolean"
              },
              "waterfrontYN": {
                "type": "boolean"
              },
              "garageYN": {
                "type": "boolean"
              },
              "garageSpaces": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "architecturalStyle": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "levels": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "storiesTotal": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "roomsTotal": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "aboveGradeFinishedArea": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "belowGradeFinishedArea": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "aboveGradeUnfinishedArea": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "belowGradeUnfinishedArea": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "livingAreaSource": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "buildingAreaTotal": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "lotSizeDimensions": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "yearBuiltSource": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "propertyCondition": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "builderName": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "builderModel": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "unitBuildingType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "entryLevel": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "condoYN": {
                "type": "boolean"
              },
              "ownershipInterest": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "directionFaces": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "commonWalls": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "make": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "model": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "mobileLength": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "mobileWidth": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "interiorFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "appliances": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "flooring": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "basement": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "basementYN": {
                "type": "boolean"
              },
              "fireplaceYN": {
                "type": "boolean"
              },
              "fireplacesTotal": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "fireplaceFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "windowFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "doorFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "wallsCeilings": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "laundryType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "accessibilityFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "securityFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "furnished": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "exteriorFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "constructionMaterials": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "roof": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "foundationDetails": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "patioAndPorchFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "otherStructures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "lotFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "fencing": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "view": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "viewYN": {
                "type": "boolean"
              },
              "waterfrontFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "waterAccessYN": {
                "type": "boolean"
              },
              "waterAccessFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "waterBodyName": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "waterBodyType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "waterViewYN": {
                "type": "boolean"
              },
              "pool": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "poolFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "poolPrivateYN": {
                "type": "boolean"
              },
              "spaYN": {
                "type": "boolean"
              },
              "spaFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "communityPoolFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "parkingFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "parkingTotal": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "garageType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "carportSpaces": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "openParkingSpaces": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "totalGarageAndParkingSpaces": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "attachedGarageYN": {
                "type": "boolean"
              },
              "heating": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "heatingYN": {
                "type": "boolean"
              },
              "heatingFuel": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "cooling": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "coolingYN": {
                "type": "boolean"
              },
              "coolingFuel": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "hotWater": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "waterSource": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "sewer": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "utilities": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "electric": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "greenEnergyEfficient": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "greenSustainability": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "greenVerificationYN": {
                "type": "boolean"
              },
              "associationName": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "associationFee2": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "associationFee2Frequency": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "associationFeeIncludes": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "associationAmenities": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "seniorCommunityYN": {
                "type": "boolean"
              },
              "seniorCommunityAgeRequirement": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "petsAllowed": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "petsAllowedYN": {
                "type": "boolean"
              },
              "taxAssessmentAmount": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "countyTax": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "cityTownTax": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "schoolTax": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "landAssessmentAmount": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "improvementAssessmentAmount": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "zoning": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "zoningDescription": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "groundRentAmount": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "groundRentPaymentFrequency": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "frontFootFee": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "landLeaseYN": {
                "type": "boolean"
              },
              "landLeaseAmount": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "possession": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "listingTerms": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "acceptableFinancing": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "saleType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "shortSale": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "realEstateOwnedYN": {
                "type": "boolean"
              },
              "inclusions": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "exclusions": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "disclosures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "availabilityDate": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "leaseTerm": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "minLease": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "maxLease": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "securityDeposit": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "applicationFee": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "rentIncludes": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "tenantPays": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "ownerPays": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "smokingAllowedYN": {
                "type": "boolean"
              },
              "vacationRentalYN": {
                "type": "boolean"
              },
              "currentUse": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "possibleUse": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "roadSurfaceType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "roadFrontageLength": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "soilTypes": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "topographyList": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "numberOfLots": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "numberOfBuildings": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "numberOfUnitsTotal": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "farmFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "farmOperation": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "cropsIncludedYN": {
                "type": "boolean"
              },
              "horseYN": {
                "type": "boolean"
              },
              "businessType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "grossIncome": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "netOperatingIncome": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "capRate": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "historicYN": {
                "type": "boolean"
              },
              "federalFloodZoneYN": {
                "type": "boolean"
              },
              "navigableWaterYN": {
                "type": "boolean"
              },
              "riparianRightsYN": {
                "type": "boolean"
              },
              "dockType": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "docks": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "slips": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "municipalTrashYN": {
                "type": "boolean"
              },
              "transportation": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "buildingName": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              },
              "buildingFeatures": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "rooms": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Room"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The rooms, in display order, for a listing on the market. Null when the listing is off the market, and (with the warning rooms_stale) when the room list could not be refreshed in 12 hours."
          },
          "openHouses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenHouse"
            },
            "description": "Public open houses that have not ended. Empty for a Coming Soon listing and for a withheld address."
          },
          "places": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlaceRef"
            },
            "description": "The places the listing belongs to. School districts on Premium only."
          },
          "schools": {
            "$ref": "#/components/schemas/ListingSchools"
          },
          "priceHistory": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                  "description": "A calendar date in Eastern time, YYYY-MM-DD."
                },
                "price": {
                  "type": "number"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "list",
                    "close"
                  ]
                }
              },
              "required": [
                "date",
                "price",
                "kind"
              ],
              "additionalProperties": false
            },
            "description": "Dated price events, oldest first. Left out for a Coming Soon listing and when the listing hides its price history."
          },
          "listingIdHistory": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "mlsNumber": {
                  "type": "string"
                },
                "firstSeenAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                },
                "lastSeenAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                }
              },
              "required": [
                "mlsNumber",
                "firstSeenAt",
                "lastSeenAt"
              ],
              "additionalProperties": false
            },
            "description": "The MLS numbers the listing has carried."
          }
        },
        "required": [
          "listingKey",
          "mlsNumber",
          "status",
          "statusLabel",
          "propertyClass",
          "structureType",
          "price",
          "address",
          "addressDisplay",
          "location",
          "beds",
          "baths",
          "livingAreaSqft",
          "lotSizeAcres",
          "lotSizeSqft",
          "yearBuilt",
          "daysOnMarket",
          "expectedOnMarketDate",
          "closeDate",
          "photos",
          "attribution",
          "permissions",
          "slug",
          "updatedAt",
          "remarks",
          "directions",
          "taxId",
          "virtualTourUrl",
          "media",
          "features",
          "rooms",
          "openHouses",
          "places",
          "listingIdHistory"
        ],
        "additionalProperties": false
      },
      "ListingSchools": {
        "type": "object",
        "properties": {
          "district": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DistrictRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The school district the listing lies in; the first of `districts`. Null when it lies in none."
          },
          "districts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DistrictRef"
            },
            "description": "Every district the listing lies in: a unified one, then an elementary one, then a secondary one."
          },
          "assigned": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "elementary",
                    "middle_or_junior",
                    "high"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "listing"
                  ],
                  "description": "Always \"listing\": the names are what the listing's agent entered, not a school authority's."
                }
              },
              "required": [
                "level",
                "name",
                "source"
              ],
              "additionalProperties": false
            },
            "description": "The schools the listing's agent entered, at most one a level. Empty when none was entered."
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "The listing's updatedAt."
          },
          "notice": {
            "type": "string",
            "description": "\"School assignments are subject to change; verify with the school district.\" Show it with the schools."
          }
        },
        "required": [
          "district",
          "districts",
          "assigned",
          "asOf",
          "notice"
        ],
        "additionalProperties": false
      },
      "ListingSchoolsAnswer": {
        "type": "object",
        "properties": {
          "listingKey": {
            "type": "string"
          },
          "district": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DistrictRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The school district the listing lies in; the first of `districts`. Null when it lies in none."
          },
          "districts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DistrictRef"
            },
            "description": "Every district the listing lies in: a unified one, then an elementary one, then a secondary one."
          },
          "assigned": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "elementary",
                    "middle_or_junior",
                    "high"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "listing"
                  ],
                  "description": "Always \"listing\": the names are what the listing's agent entered, not a school authority's."
                }
              },
              "required": [
                "level",
                "name",
                "source"
              ],
              "additionalProperties": false
            },
            "description": "The schools the listing's agent entered, at most one a level. Empty when none was entered."
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "The listing's updatedAt."
          },
          "notice": {
            "type": "string",
            "description": "\"School assignments are subject to change; verify with the school district.\" Show it with the schools."
          }
        },
        "required": [
          "listingKey",
          "district",
          "districts",
          "assigned",
          "asOf",
          "notice"
        ],
        "additionalProperties": false
      },
      "ListingSummary": {
        "type": "object",
        "description": "A listing as a search returns it.",
        "properties": {
          "listingKey": {
            "type": "string",
            "description": "The listing's lasting key. Use it in your page addresses and to fetch the listing. Treat it as text."
          },
          "mlsNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "The MLS number shown to the public. It can change; the key does not."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "active_under_contract",
              "coming_soon",
              "pending",
              "closed"
            ]
          },
          "statusLabel": {
            "type": "string",
            "description": "The status in words, such as \"Active Under Contract\"."
          },
          "propertyClass": {
            "type": "string",
            "enum": [
              "residential",
              "residential_lease",
              "land",
              "farm",
              "commercial_sale",
              "commercial_lease",
              "business_opportunity",
              "manufactured_in_park",
              "multi_family",
              "other"
            ]
          },
          "structureType": {
            "type": "string",
            "enum": [
              "detached",
              "twin_semi_detached",
              "row_townhouse_interior",
              "row_townhouse_end",
              "condo_apartment",
              "multi_family",
              "deeded_parking",
              "manufactured",
              "other"
            ]
          },
          "price": {
            "type": "object",
            "properties": {
              "list": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The list price in US dollars. Null when the listing has none, or when its prices may not be shown."
              },
              "close": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The sale price. Only for a Closed listing; null otherwise."
              }
            },
            "required": [
              "list",
              "close"
            ],
            "additionalProperties": false
          },
          "address": {
            "anyOf": [
              {
                "type": "object",
                "description": "The address, when it may be shown. Null when the seller asked that it be hidden.",
                "properties": {
                  "line1": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The street address, as Bright sends it."
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The postal city, in title case."
                  },
                  "state": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The two-letter state code."
                  },
                  "postalCode": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "county": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The county, in title case."
                  }
                },
                "required": [
                  "line1",
                  "unit",
                  "city",
                  "state",
                  "postalCode",
                  "county"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "addressDisplay": {
            "type": "string",
            "enum": [
              "full",
              "withheld"
            ],
            "description": "\"withheld\": the seller asked that the address be hidden. The address and the location are then null."
          },
          "addressNotice": {
            "type": "string",
            "description": "Only when the address is withheld: the text to show in its place (\"Contact Listing Agent for Additional Information\")."
          },
          "location": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lng": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lng"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The point for a map. Null when the address is withheld, when the listing has no coordinates, and when its point lies outside the seven jurisdictions."
          },
          "beds": {
            "type": [
              "integer",
              "null"
            ]
          },
          "baths": {
            "type": "object",
            "properties": {
              "total": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Full baths plus half a bath for each half bath."
              },
              "full": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "half": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "total",
              "full",
              "half"
            ],
            "additionalProperties": false
          },
          "livingAreaSqft": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lotSizeAcres": {
            "type": [
              "number",
              "null"
            ]
          },
          "lotSizeSqft": {
            "type": [
              "number",
              "null"
            ]
          },
          "yearBuilt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "daysOnMarket": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Null for a Coming Soon listing, and when the listing does not allow it to be shown. Never compute it yourself."
          },
          "expectedOnMarketDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "For a Coming Soon listing: the day it is expected on the market."
          },
          "closeDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "The day of the sale. Only for a Closed listing; null otherwise."
          },
          "photos": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 0,
                "description": "How many photos the gallery has."
              },
              "primary": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PhotoUrls"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The first photo, or null when there is none."
              }
            },
            "required": [
              "count",
              "primary"
            ],
            "additionalProperties": false
          },
          "attribution": {
            "type": "object",
            "description": "Who must be credited for the listing.",
            "properties": {
              "listOfficeName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The listing office. Show it on every card and thumbnail, and near the top of the detail page."
              },
              "listOfficePhone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listOfficeEmail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listAgentName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listAgentPhone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listAgentEmail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "coListOfficeName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "coListAgentName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buyerOfficeName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The selling office. Only for a Closed listing; null otherwise."
              },
              "buyerAgentName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The selling agent. Only for a Closed listing; null otherwise."
              }
            },
            "required": [
              "listOfficeName",
              "listOfficePhone",
              "listOfficeEmail",
              "listAgentName",
              "listAgentPhone",
              "listAgentEmail",
              "coListOfficeName",
              "coListAgentName",
              "buyerOfficeName",
              "buyerAgentName"
            ],
            "additionalProperties": false
          },
          "permissions": {
            "type": "object",
            "description": "What the listing's seller allows beside the listing.",
            "properties": {
              "avmDisplay": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "False: show no estimated value for this listing, from any source."
              },
              "consumerComments": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "False: show no visitor comments or reviews on this listing."
              }
            },
            "required": [
              "avmDisplay",
              "consumerComments"
            ],
            "additionalProperties": false
          },
          "slug": {
            "type": "string",
            "description": "Words for a page address, ending in the listing key: the street, city, state and ZIP code, or the city and state alone when the address is withheld."
          },
          "isFavorite": {
            "type": "boolean",
            "description": "Only when the request acts for one consumer (a client token, or X-Client-Id): whether the listing is among that consumer's favorites."
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "When the listing last changed at Bright."
          }
        },
        "required": [
          "listingKey",
          "mlsNumber",
          "status",
          "statusLabel",
          "propertyClass",
          "structureType",
          "price",
          "address",
          "addressDisplay",
          "location",
          "beds",
          "baths",
          "livingAreaSqft",
          "lotSizeAcres",
          "lotSizeSqft",
          "yearBuilt",
          "daysOnMarket",
          "expectedOnMarketDate",
          "closeDate",
          "photos",
          "attribution",
          "permissions",
          "slug",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "MapAnswer": {
        "type": "object",
        "description": "Pins, or clusters above 500. Only listings with a shown address and a point inside the region.",
        "properties": {
          "total": {
            "type": "integer",
            "description": "How many located listings match."
          },
          "pins": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "listingKey": {
                  "type": "string"
                },
                "lat": {
                  "type": "number"
                },
                "lng": {
                  "type": "number"
                },
                "price": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The list price. Null when it may not be shown."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "active_under_contract",
                    "coming_soon",
                    "pending",
                    "closed"
                  ]
                }
              },
              "required": [
                "listingKey",
                "lat",
                "lng",
                "price",
                "status"
              ],
              "additionalProperties": false
            },
            "description": "One for each listing, when 500 or fewer match. Empty otherwise."
          },
          "clusters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "lat": {
                  "type": "number"
                },
                "lng": {
                  "type": "number"
                },
                "count": {
                  "type": "integer",
                  "description": "How many listings the cluster stands for."
                },
                "bbox": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  },
                  "minItems": 4,
                  "maxItems": 4,
                  "description": "The box that holds them: [minLng, minLat, maxLng, maxLat]. Zoom to it."
                }
              },
              "required": [
                "lat",
                "lng",
                "count",
                "bbox"
              ],
              "additionalProperties": false
            },
            "description": "Groups on a grid, when more than 500 match. Empty otherwise."
          },
          "gridCellDegrees": {
            "type": "number",
            "description": "With clusters: the size of a grid cell, in degrees."
          }
        },
        "required": [
          "total",
          "pins",
          "clusters"
        ],
        "additionalProperties": false
      },
      "MediaLink": {
        "type": "object",
        "description": "A virtual tour or a video, as a link. Never part of the photo gallery or its count.",
        "properties": {
          "mediaKey": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "tour",
              "video",
              "other"
            ]
          },
          "url": {
            "type": "string",
            "description": "Bright's address for it, unaltered except for https:// added where it had no scheme."
          },
          "order": {
            "type": "integer"
          },
          "caption": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "mediaKey",
          "kind",
          "url",
          "order",
          "caption"
        ],
        "additionalProperties": false
      },
      "Notice": {
        "type": "object",
        "description": "Something your site should act on. IDs and the kind of change, never listing content. The same JSON a webhook carries.",
        "properties": {
          "id": {
            "type": "string",
            "description": "\"evt_…\". The same notice always has the same ID: de-duplicate by it."
          },
          "type": {
            "type": "string",
            "enum": [
              "saved_search.matches",
              "favorite.listing_updated",
              "favorite.listing_removed",
              "listing.removed",
              "account.suspended",
              "account.reinstated",
              "data.stale"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "accountId": {
            "type": "string",
            "description": "Your account."
          },
          "clientId": {
            "type": "string",
            "description": "The consumer it concerns. Only on the three consumer types."
          },
          "savedSearchId": {
            "type": "string",
            "description": "The saved search. Only on saved_search.matches."
          },
          "listingKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The listings concerned, at most 500. Empty on the account and data types."
          },
          "changes": {
            "type": "array",
            "items": {
              "description": "What happened, by type: { listingKey, reasons } for a saved search, { listingKey, kinds } for a favorite, or a word (\"removed\", \"suspended\", \"reinstated\", \"started\", \"ended\")."
            },
            "description": "What happened. Always an array."
          }
        },
        "required": [
          "id",
          "type",
          "createdAt",
          "accountId",
          "listingKeys",
          "changes"
        ],
        "additionalProperties": false
      },
      "OpenHouse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "The day, YYYY-MM-DD."
          },
          "startTime": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "endTime": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "method": {
            "type": "string",
            "enum": [
              "in_person",
              "virtual",
              "in_person_and_virtual"
            ]
          },
          "virtualUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The link of an open house held by video. Always https."
          },
          "remarks": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "date",
          "startTime",
          "endTime",
          "method",
          "virtualUrl",
          "remarks"
        ],
        "additionalProperties": false
      },
      "PhotoUrls": {
        "type": "object",
        "description": "One photo in Bright's five sizes, each an https address on Bright's own media host (on the sandbox, the sandbox's). Show them whole, with CSS object-fit: contain; never crop, overlay or alter one. A size that is not available is null.",
        "properties": {
          "thumb": {
            "type": [
              "string",
              "null"
            ]
          },
          "medium": {
            "type": [
              "string",
              "null"
            ]
          },
          "full": {
            "type": [
              "string",
              "null"
            ]
          },
          "hires": {
            "type": [
              "string",
              "null"
            ]
          },
          "hd": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "thumb",
          "medium",
          "full",
          "hires",
          "hd"
        ],
        "additionalProperties": false
      },
      "Place": {
        "type": "object",
        "description": "A named area listings belong to: its names, its center and its box. Never a boundary shape.",
        "properties": {
          "placeId": {
            "type": "string",
            "pattern": "^pl_[A-Za-z0-9]{22}$",
            "description": "The place's ID, \"pl_…\". The same in the sandbox and on live."
          },
          "kind": {
            "type": "string",
            "enum": [
              "state",
              "county",
              "city",
              "municipality",
              "cdp",
              "community",
              "zcta",
              "postal_city",
              "subdivision",
              "school_district"
            ],
            "description": "What kind of area it is. A county that is its own city reads \"city\"."
          },
          "name": {
            "type": "string",
            "description": "The bare name, such as \"Lower Merion\"."
          },
          "displayName": {
            "type": "string",
            "description": "The name to show: it tells look-alikes apart (\"Lower Merion Township, Montgomery County, PA\")."
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "The two-letter state code."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "Words for a page address, such as \"pa/montgomery-county/lower-merion-township\"."
          },
          "typeLabel": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the place calls itself: township, borough, city."
          },
          "cityCounty": {
            "type": "boolean",
            "description": "True for a city that is its own county."
          },
          "center": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lng": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lng"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "bbox": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 4,
                "maxItems": 4
              },
              {
                "type": "null"
              }
            ],
            "description": "The box that holds it: [minLng, minLat, maxLng, maxLat]. Fit your map to it."
          },
          "radiusMeters": {
            "type": [
              "integer",
              "null"
            ],
            "description": "For a community, which is a point: the radius it is searched within. Null for every other kind."
          },
          "approximate": {
            "type": "boolean",
            "description": "True for an outline put together from other shapes, such as a postal city's."
          },
          "ncesId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a school district: its NCES ID."
          },
          "districtType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a school district: unified, elementary or secondary."
          },
          "grades": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a school district: the lowest and highest grade served, such as \"KG-12\"."
          },
          "notice": {
            "type": "string",
            "description": "Only on a school district: \"School assignments are subject to change; verify with the school district.\""
          },
          "source": {
            "type": "string",
            "description": "Where the place comes from, as a code. Today one of: census_tiger, nces_edge, usgs_gnis, bright_derived, bright_lookup, bright_listing."
          },
          "license": {
            "type": "string"
          },
          "attribution": {
            "type": [
              "string",
              "null"
            ],
            "description": "A credit line, where the source requires one."
          },
          "vintage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The source's edition: a year, a school year, or \"current\"."
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "For a school district: the first day of the school year its boundary is from."
          },
          "parents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "placeId": {
                  "type": "string",
                  "pattern": "^pl_[A-Za-z0-9]{22}$"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "state",
                    "county",
                    "city",
                    "municipality",
                    "cdp",
                    "community",
                    "zcta",
                    "postal_city",
                    "subdivision",
                    "school_district"
                  ]
                },
                "displayName": {
                  "type": "string"
                },
                "overlapFraction": {
                  "type": "number",
                  "description": "The share of this place that lies in the parent, from 0 to 1."
                },
                "primary": {
                  "type": "boolean",
                  "description": "True for the parent used in the display name."
                }
              },
              "required": [
                "placeId",
                "kind",
                "displayName",
                "overlapFraction",
                "primary"
              ],
              "additionalProperties": false
            },
            "description": "The places this one lies in. A place can lie in more than one."
          }
        },
        "required": [
          "placeId",
          "kind",
          "name",
          "displayName",
          "state",
          "slug",
          "typeLabel",
          "cityCounty",
          "center",
          "bbox",
          "radiusMeters",
          "approximate",
          "source",
          "license",
          "attribution",
          "vintage",
          "asOf",
          "parents"
        ],
        "additionalProperties": false
      },
      "PlaceContaining": {
        "type": "object",
        "properties": {
          "placeId": {
            "type": "string",
            "pattern": "^pl_[A-Za-z0-9]{22}$",
            "description": "The place's ID, \"pl_…\". The same in the sandbox and on live."
          },
          "kind": {
            "type": "string",
            "enum": [
              "state",
              "county",
              "city",
              "municipality",
              "cdp",
              "community",
              "zcta",
              "postal_city",
              "subdivision",
              "school_district"
            ],
            "description": "What kind of area it is. A county that is its own city reads \"city\"."
          },
          "name": {
            "type": "string",
            "description": "The bare name, such as \"Lower Merion\"."
          },
          "displayName": {
            "type": "string",
            "description": "The name to show: it tells look-alikes apart (\"Lower Merion Township, Montgomery County, PA\")."
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "The two-letter state code."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "Words for a page address, such as \"pa/montgomery-county/lower-merion-township\"."
          },
          "typeLabel": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the place calls itself: township, borough, city."
          },
          "cityCounty": {
            "type": "boolean",
            "description": "True for a city that is its own county."
          },
          "center": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lng": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lng"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "bbox": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 4,
                "maxItems": 4
              },
              {
                "type": "null"
              }
            ],
            "description": "The box that holds it: [minLng, minLat, maxLng, maxLat]. Fit your map to it."
          },
          "radiusMeters": {
            "type": [
              "integer",
              "null"
            ],
            "description": "For a community, which is a point: the radius it is searched within. Null for every other kind."
          },
          "approximate": {
            "type": "boolean",
            "description": "True for an outline put together from other shapes, such as a postal city's."
          },
          "ncesId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a school district: its NCES ID."
          },
          "districtType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a school district: unified, elementary or secondary."
          },
          "grades": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a school district: the lowest and highest grade served, such as \"KG-12\"."
          },
          "notice": {
            "type": "string",
            "description": "Only on a school district: \"School assignments are subject to change; verify with the school district.\""
          },
          "source": {
            "type": "string",
            "description": "Where the place comes from, as a code. Today one of: census_tiger, nces_edge, usgs_gnis, bright_derived, bright_lookup, bright_listing."
          },
          "license": {
            "type": "string"
          },
          "attribution": {
            "type": [
              "string",
              "null"
            ],
            "description": "A credit line, where the source requires one."
          },
          "vintage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The source's edition: a year, a school year, or \"current\"."
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "For a school district: the first day of the school year its boundary is from."
          },
          "parents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "placeId": {
                  "type": "string",
                  "pattern": "^pl_[A-Za-z0-9]{22}$"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "state",
                    "county",
                    "city",
                    "municipality",
                    "cdp",
                    "community",
                    "zcta",
                    "postal_city",
                    "subdivision",
                    "school_district"
                  ]
                },
                "displayName": {
                  "type": "string"
                },
                "overlapFraction": {
                  "type": "number",
                  "description": "The share of this place that lies in the parent, from 0 to 1."
                },
                "primary": {
                  "type": "boolean",
                  "description": "True for the parent used in the display name."
                }
              },
              "required": [
                "placeId",
                "kind",
                "displayName",
                "overlapFraction",
                "primary"
              ],
              "additionalProperties": false
            },
            "description": "The places this one lies in. A place can lie in more than one."
          },
          "via": {
            "type": "string",
            "enum": [
              "geometry",
              "radius",
              "postal_city"
            ],
            "description": "Why the place holds the point: its outline covers it, a community's radius reaches it, or it is the postal city of the ZIP area that covers it."
          }
        },
        "required": [
          "placeId",
          "kind",
          "name",
          "displayName",
          "state",
          "slug",
          "typeLabel",
          "cityCounty",
          "center",
          "bbox",
          "radiusMeters",
          "approximate",
          "source",
          "license",
          "attribution",
          "vintage",
          "asOf",
          "parents",
          "via"
        ],
        "additionalProperties": false
      },
      "PlaceRef": {
        "type": "object",
        "description": "A place the listing belongs to: its ID and name, never a shape.",
        "properties": {
          "placeId": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          }
        },
        "required": [
          "placeId",
          "kind",
          "displayName"
        ],
        "additionalProperties": false
      },
      "Room": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "level": {
            "type": [
              "string",
              "null"
            ]
          },
          "length": {
            "type": [
              "number",
              "null"
            ]
          },
          "width": {
            "type": [
              "number",
              "null"
            ]
          },
          "area": {
            "type": [
              "number",
              "null"
            ]
          },
          "dimensions": {
            "type": [
              "string",
              "null"
            ]
          },
          "features": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "order": {
            "type": "integer"
          }
        },
        "required": [
          "type",
          "level",
          "length",
          "width",
          "area",
          "dimensions",
          "features",
          "description",
          "order"
        ],
        "additionalProperties": false
      },
      "SandboxTrigger": {
        "type": "object",
        "description": "A change the sandbox was asked to make on demand, and how it ended.",
        "properties": {
          "id": {
            "type": "string",
            "description": "\"trg_…\"."
          },
          "event": {
            "type": "string",
            "enum": [
              "saved_search.matches",
              "favorite.listing_updated",
              "listing.removed"
            ]
          },
          "listingKey": {
            "type": "string",
            "description": "The listing that is made, changed or removed. One a trigger makes starts with \"SBXT\"."
          },
          "change": {
            "type": "object",
            "description": "What is done: { kind: \"new_listing\", status }, { kind: \"price\" | \"photos\" | \"open_house\" }, { kind: \"status\", from, to } or { kind: \"removed\" }.",
            "properties": {
              "kind": {
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": true
          },
          "notice": {
            "type": "string",
            "enum": [
              "instant",
              "next_digest"
            ],
            "description": "instant: the notice follows within about 10 seconds. next_digest: it comes with the saved search's next daily or weekly digest."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "done",
              "failed"
            ]
          },
          "noticeId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Once done: the ID of the notice the change produced. Null for next_digest, and until then."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why a failed trigger could not be completed. Null otherwise."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "When the trigger was accepted."
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "When it was done, or failed. Null while it is pending."
          }
        },
        "required": [
          "id",
          "event",
          "listingKey",
          "change",
          "notice",
          "status",
          "noticeId",
          "reason",
          "createdAt",
          "completedAt"
        ],
        "additionalProperties": false
      },
      "SandboxTriggerAccepted": {
        "type": "object",
        "description": "A change the sandbox was asked to make on demand, as it was accepted.",
        "properties": {
          "id": {
            "type": "string",
            "description": "\"trg_…\"."
          },
          "event": {
            "type": "string",
            "enum": [
              "saved_search.matches",
              "favorite.listing_updated",
              "listing.removed"
            ]
          },
          "listingKey": {
            "type": "string",
            "description": "The listing that is made, changed or removed. One a trigger makes starts with \"SBXT\"."
          },
          "change": {
            "type": "object",
            "description": "What is done: { kind: \"new_listing\", status }, { kind: \"price\" | \"photos\" | \"open_house\" }, { kind: \"status\", from, to } or { kind: \"removed\" }.",
            "properties": {
              "kind": {
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": true
          },
          "notice": {
            "type": "string",
            "enum": [
              "instant",
              "next_digest"
            ],
            "description": "instant: the notice follows within about 10 seconds. next_digest: it comes with the saved search's next daily or weekly digest."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "done",
              "failed"
            ]
          }
        },
        "required": [
          "id",
          "event",
          "listingKey",
          "change",
          "notice",
          "status"
        ],
        "additionalProperties": false
      },
      "SavedSearch": {
        "type": "object",
        "description": "A consumer's search, kept so that your site can tell them of new matches.",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^ss_[A-Za-z0-9]{22}$",
            "description": "\"ss_…\"."
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "criteria": {
            "$ref": "#/components/schemas/SearchFilters"
          },
          "alertFrequency": {
            "type": "string",
            "enum": [
              "instant",
              "daily",
              "weekly",
              "off"
            ],
            "description": "When matches are gathered into a notice: after each data update, daily at 7:00 am Eastern, Mondays at 7:00 am Eastern, or never."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused_tier",
              "paused_suspended",
              "paused_invalid"
            ],
            "description": "Worked out on every read. A paused search makes no notices: its criteria need Premium on a Basic account, the account is suspended, or its criteria are no longer accepted."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "required": [
          "id",
          "name",
          "criteria",
          "alertFrequency",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "SavedShape": {
        "type": "object",
        "description": "A shape a consumer drew and kept, usable as a search's location.shapeId.",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^shp_[A-Za-z0-9]{22}$",
            "description": "\"shp_…\"."
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "geometry": {
            "$ref": "#/components/schemas/DrawnShape"
          },
          "vertices": {
            "type": "integer",
            "description": "The ring's corners; its closing repeat is not one."
          },
          "areaSqKm": {
            "type": "number",
            "description": "The area on the Earth's surface, in square kilometres."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "required": [
          "id",
          "name",
          "geometry",
          "vertices",
          "areaSqKm",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "SearchFilters": {
        "type": "object",
        "description": "The filters of a search. Every one is optional, and they combine with AND. A key that is not listed is refused, never ignored.",
        "properties": {
          "status": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "active_under_contract",
                "coming_soon",
                "pending",
                "closed"
              ]
            },
            "description": "Left out: active."
          },
          "propertyClass": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "residential",
                "residential_lease",
                "land",
                "farm",
                "commercial_sale",
                "commercial_lease",
                "business_opportunity",
                "manufactured_in_park",
                "multi_family",
                "other"
              ]
            },
            "description": "Property classes: the values of GET /v1/lookups/property-classes."
          },
          "structureType": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "detached",
                "twin_semi_detached",
                "row_townhouse_interior",
                "row_townhouse_end",
                "condo_apartment",
                "multi_family",
                "deeded_parking",
                "manufactured",
                "other"
              ]
            },
            "description": "Structure types: the values of GET /v1/lookups/structure-types."
          },
          "price": {
            "type": "object",
            "description": "The list price in US dollars.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "beds": {
            "type": "object",
            "description": "Bedrooms.",
            "properties": {
              "min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "max": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "baths": {
            "type": "object",
            "description": "Baths, a half bath counting half.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "livingAreaSqft": {
            "type": "object",
            "description": "Living area in square feet.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000000
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000000
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "lotSizeAcres": {
            "type": "object",
            "description": "Lot size in acres.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "yearBuilt": {
            "type": "object",
            "description": "The year built.",
            "properties": {
              "min": {
                "type": "integer",
                "minimum": 1600,
                "maximum": 2100
              },
              "max": {
                "type": "integer",
                "minimum": 1600,
                "maximum": 2100
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "closeDate": {
            "type": "object",
            "description": "The day of the sale. Only a Closed listing has one, so this finds Closed listings only. Closed listings are kept for three years: an earlier `from` is moved to that, with the warning close_date_clamped.",
            "properties": {
              "from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              },
              "to": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "keywords": {
            "type": "string",
            "maxLength": 200,
            "description": "Words searched in the public remarks and these feature lists: interior, exterior, appliances, lot, pool, parking, waterfront, view, architectural style, patio and porch, windows, doors."
          },
          "location": {
            "type": "object",
            "description": "Where. The kinds combine with AND.",
            "properties": {
              "placeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^pl_[A-Za-z0-9]{22}$"
                },
                "description": "Place IDs: any kind on every plan, except school districts, which are Premium. Listings in any of them match. A community is a point with a radius of a mile, which radius.meters alone may change. An unknown or retired place is 404 not_found."
              },
              "postalCodes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{5}$"
                },
                "description": "Five-digit ZIP codes, matched on the listing's own postal code."
              },
              "cities": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "The two-letter state code."
                    }
                  },
                  "required": [
                    "name",
                    "state"
                  ],
                  "additionalProperties": false
                },
                "description": "Postal cities, matched on the listing's own city and state."
              },
              "subdivisions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "The two-letter state code."
                    }
                  },
                  "required": [
                    "name",
                    "state"
                  ],
                  "additionalProperties": false
                },
                "description": "Subdivisions, matched on the listing's own subdivision name and state."
              },
              "bbox": {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 4,
                "maxItems": 4,
                "description": "A box: [minLng, minLat, maxLng, maxLat]. Finds only listings with a shown address."
              },
              "radius": {
                "type": "object",
                "description": "A circle. Finds only listings with a shown address. sort=distance needs its center.",
                "properties": {
                  "center": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 2,
                    "maxItems": 2,
                    "description": "[longitude, latitude]."
                  },
                  "meters": {
                    "type": "number",
                    "description": "With a center: the radius in metres. Alone, with one community among placeIds: that community's radius, from 400 to 8000."
                  }
                },
                "required": [
                  "meters"
                ],
                "additionalProperties": false
              },
              "shapeId": {
                "type": "string",
                "pattern": "^shp_[A-Za-z0-9]{22}$",
                "description": "Premium. A saved shape's ID, \"shp_…\", of the same consumer."
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "listAgentMlsId": {
            "type": "string",
            "description": "The listing or co-listing agent's MLS ID."
          },
          "listOfficeMlsId": {
            "type": "string",
            "description": "The listing or co-listing office's MLS ID."
          },
          "openHouse": {
            "type": "object",
            "description": "Listings with a public open house in this range of days. While the open-house feed is more than 12 hours old: 500 data_stale, with details.feed \"openHouses\".",
            "properties": {
              "from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              },
              "to": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "modifiedSince": {
            "type": "string",
            "format": "date-time",
            "description": "An instant in ISO 8601: listings changed at or after it."
          },
          "hasBasement": {
            "type": "boolean",
            "description": "true to require it."
          },
          "hasFireplace": {
            "type": "boolean",
            "description": "true to require it."
          },
          "hasPool": {
            "type": "boolean",
            "description": "true to require it."
          },
          "seniorCommunity": {
            "type": "boolean",
            "description": "true to require it."
          },
          "petsAllowed": {
            "type": "boolean",
            "description": "true to require it."
          },
          "newConstruction": {
            "type": "boolean",
            "description": "true to require it."
          },
          "waterfront": {
            "type": "boolean",
            "description": "true to require it."
          },
          "garage": {
            "type": "boolean",
            "description": "true to require it."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "SearchPage": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "description": "How many listings a page holds."
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Send it as `cursor` for the next page. Null on the last page."
          },
          "total": {
            "type": "integer",
            "description": "How many listings match, exact up to 10,000."
          },
          "totalIsCapped": {
            "type": "boolean",
            "description": "True when the count stopped at 10,000."
          }
        },
        "required": [
          "limit",
          "nextCursor",
          "total",
          "totalIsCapped"
        ],
        "additionalProperties": false
      },
      "SearchRequest": {
        "type": "object",
        "description": "A search: filters, a sort and paging. Every key is optional. A key that is not listed is refused, never ignored. The map routes ignore sort, limit and cursor.",
        "properties": {
          "status": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "active_under_contract",
                "coming_soon",
                "pending",
                "closed"
              ]
            },
            "description": "Left out: active."
          },
          "propertyClass": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "residential",
                "residential_lease",
                "land",
                "farm",
                "commercial_sale",
                "commercial_lease",
                "business_opportunity",
                "manufactured_in_park",
                "multi_family",
                "other"
              ]
            },
            "description": "Property classes: the values of GET /v1/lookups/property-classes."
          },
          "structureType": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "detached",
                "twin_semi_detached",
                "row_townhouse_interior",
                "row_townhouse_end",
                "condo_apartment",
                "multi_family",
                "deeded_parking",
                "manufactured",
                "other"
              ]
            },
            "description": "Structure types: the values of GET /v1/lookups/structure-types."
          },
          "price": {
            "type": "object",
            "description": "The list price in US dollars.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "beds": {
            "type": "object",
            "description": "Bedrooms.",
            "properties": {
              "min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "max": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "baths": {
            "type": "object",
            "description": "Baths, a half bath counting half.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "livingAreaSqft": {
            "type": "object",
            "description": "Living area in square feet.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000000
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000000
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "lotSizeAcres": {
            "type": "object",
            "description": "Lot size in acres.",
            "properties": {
              "min": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000
              },
              "max": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "yearBuilt": {
            "type": "object",
            "description": "The year built.",
            "properties": {
              "min": {
                "type": "integer",
                "minimum": 1600,
                "maximum": 2100
              },
              "max": {
                "type": "integer",
                "minimum": 1600,
                "maximum": 2100
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "closeDate": {
            "type": "object",
            "description": "The day of the sale. Only a Closed listing has one, so this finds Closed listings only. Closed listings are kept for three years: an earlier `from` is moved to that, with the warning close_date_clamped.",
            "properties": {
              "from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              },
              "to": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "keywords": {
            "type": "string",
            "maxLength": 200,
            "description": "Words searched in the public remarks and these feature lists: interior, exterior, appliances, lot, pool, parking, waterfront, view, architectural style, patio and porch, windows, doors."
          },
          "location": {
            "type": "object",
            "description": "Where. The kinds combine with AND.",
            "properties": {
              "placeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^pl_[A-Za-z0-9]{22}$"
                },
                "description": "Place IDs: any kind on every plan, except school districts, which are Premium. Listings in any of them match. A community is a point with a radius of a mile, which radius.meters alone may change. An unknown or retired place is 404 not_found."
              },
              "postalCodes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{5}$"
                },
                "description": "Five-digit ZIP codes, matched on the listing's own postal code."
              },
              "cities": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "The two-letter state code."
                    }
                  },
                  "required": [
                    "name",
                    "state"
                  ],
                  "additionalProperties": false
                },
                "description": "Postal cities, matched on the listing's own city and state."
              },
              "subdivisions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "The two-letter state code."
                    }
                  },
                  "required": [
                    "name",
                    "state"
                  ],
                  "additionalProperties": false
                },
                "description": "Subdivisions, matched on the listing's own subdivision name and state."
              },
              "bbox": {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 4,
                "maxItems": 4,
                "description": "A box: [minLng, minLat, maxLng, maxLat]. Finds only listings with a shown address."
              },
              "radius": {
                "type": "object",
                "description": "A circle. Finds only listings with a shown address. sort=distance needs its center.",
                "properties": {
                  "center": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 2,
                    "maxItems": 2,
                    "description": "[longitude, latitude]."
                  },
                  "meters": {
                    "type": "number",
                    "description": "With a center: the radius in metres. Alone, with one community among placeIds: that community's radius, from 400 to 8000."
                  }
                },
                "required": [
                  "meters"
                ],
                "additionalProperties": false
              },
              "shapeId": {
                "type": "string",
                "pattern": "^shp_[A-Za-z0-9]{22}$",
                "description": "Premium. A saved shape's ID, \"shp_…\", of the same consumer."
              },
              "shape": {
                "$ref": "#/components/schemas/DrawnShape"
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "listAgentMlsId": {
            "type": "string",
            "description": "The listing or co-listing agent's MLS ID."
          },
          "listOfficeMlsId": {
            "type": "string",
            "description": "The listing or co-listing office's MLS ID."
          },
          "openHouse": {
            "type": "object",
            "description": "Listings with a public open house in this range of days. While the open-house feed is more than 12 hours old: 500 data_stale, with details.feed \"openHouses\".",
            "properties": {
              "from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              },
              "to": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "format": "date"
              }
            },
            "required": [],
            "additionalProperties": false
          },
          "modifiedSince": {
            "type": "string",
            "format": "date-time",
            "description": "An instant in ISO 8601: listings changed at or after it."
          },
          "hasBasement": {
            "type": "boolean",
            "description": "true to require it."
          },
          "hasFireplace": {
            "type": "boolean",
            "description": "true to require it."
          },
          "hasPool": {
            "type": "boolean",
            "description": "true to require it."
          },
          "seniorCommunity": {
            "type": "boolean",
            "description": "true to require it."
          },
          "petsAllowed": {
            "type": "boolean",
            "description": "true to require it."
          },
          "newConstruction": {
            "type": "boolean",
            "description": "true to require it."
          },
          "waterfront": {
            "type": "boolean",
            "description": "true to require it."
          },
          "garage": {
            "type": "boolean",
            "description": "true to require it."
          },
          "sort": {
            "type": "string",
            "enum": [
              "price_asc",
              "price_desc",
              "newest",
              "beds_desc",
              "baths_desc",
              "sqft_desc",
              "close_date_desc",
              "distance"
            ],
            "description": "Left out: price_asc. distance needs location.radius with a center."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 24,
            "description": "Listings a page. Left out: 24."
          },
          "cursor": {
            "type": "string",
            "description": "The previous page's nextCursor, exactly as it came, with the same filters and sort."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "Status": {
        "type": "object",
        "description": "Whether the service runs, and how fresh its data is.",
        "properties": {
          "service": {
            "type": "string",
            "enum": [
              "ok",
              "database_unreachable"
            ]
          },
          "version": {
            "type": "string",
            "description": "The version of the API that is running."
          },
          "freshness": {
            "type": "object",
            "properties": {
              "live": {
                "type": "object",
                "properties": {
                  "stale": {
                    "type": "boolean",
                    "description": "True when any of the three clocks is stale."
                  },
                  "stopActive": {
                    "type": "boolean",
                    "description": "True while live listing routes answer 500 data_stale."
                  },
                  "dataLastUpdatedAt": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                    "description": "When live data was last updated."
                  },
                  "clocks": {
                    "type": "object",
                    "properties": {
                      "delta": {
                        "type": "object",
                        "properties": {
                          "startedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                          },
                          "completedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                          },
                          "ageSeconds": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "stale": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "startedAt",
                          "completedAt",
                          "ageSeconds",
                          "stale"
                        ],
                        "additionalProperties": false
                      },
                      "keySweep": {
                        "type": "object",
                        "properties": {
                          "startedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                          },
                          "completedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                          },
                          "ageSeconds": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "stale": {
                            "type": "boolean"
                          },
                          "purgeHeld": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "startedAt",
                          "completedAt",
                          "ageSeconds",
                          "stale",
                          "purgeHeld"
                        ],
                        "additionalProperties": false
                      },
                      "rosterSweep": {
                        "type": "object",
                        "properties": {
                          "startedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                          },
                          "completedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                          },
                          "ageSeconds": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "stale": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "startedAt",
                          "completedAt",
                          "ageSeconds",
                          "stale"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "delta",
                      "keySweep",
                      "rosterSweep"
                    ],
                    "additionalProperties": false
                  },
                  "openHouses": {
                    "type": "object",
                    "properties": {
                      "stale": {
                        "type": "boolean"
                      },
                      "clocks": {
                        "type": "object",
                        "properties": {
                          "delta": {
                            "type": "object",
                            "properties": {
                              "startedAt": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                              },
                              "completedAt": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                              },
                              "ageSeconds": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "stale": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "startedAt",
                              "completedAt",
                              "ageSeconds",
                              "stale"
                            ],
                            "additionalProperties": false
                          },
                          "recount": {
                            "type": "object",
                            "properties": {
                              "startedAt": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                              },
                              "completedAt": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                              },
                              "ageSeconds": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "stale": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "startedAt",
                              "completedAt",
                              "ageSeconds",
                              "stale"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "delta",
                          "recount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "stale",
                      "clocks"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "stale",
                  "stopActive",
                  "dataLastUpdatedAt",
                  "clocks"
                ],
                "additionalProperties": false
              },
              "test": {
                "type": "object",
                "properties": {
                  "stale": {
                    "type": "boolean"
                  },
                  "stopActive": {
                    "type": "boolean"
                  },
                  "exempt": {
                    "type": "boolean",
                    "description": "Always true: the sandbox is never stopped."
                  },
                  "dataLastUpdatedAt": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                    "description": "The sandbox's own clock: when its change job last finished."
                  }
                },
                "required": [
                  "stale",
                  "stopActive",
                  "exempt",
                  "dataLastUpdatedAt"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "live",
              "test"
            ],
            "additionalProperties": false
          },
          "geography": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ],
            "description": "The counts of the last geography build, or null before the first. Counts only, never a shape."
          }
        },
        "required": [
          "service",
          "version",
          "freshness",
          "geography"
        ],
        "additionalProperties": false
      },
      "Warning": {
        "type": "object",
        "description": "The request was answered, but not exactly as asked. A warning never changes results silently.",
        "properties": {
          "code": {
            "type": "string",
            "description": "What was not answered exactly as asked: close_date_clamped, filter_not_applicable, rooms_stale or open_houses_stale."
          },
          "message": {
            "type": "string"
          },
          "fix": {
            "type": "string"
          },
          "details": {
            "description": "More about this warning, by its code."
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "WebhookDelivery": {
        "type": "object",
        "description": "One notice sent, or to be sent, to one endpoint, and what became of it.",
        "properties": {
          "id": {
            "type": "string",
            "description": "\"dlv_…\": also sent as the ApiData-Delivery-Id header."
          },
          "eventId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The notice's ID. Null for a ping."
          },
          "type": {
            "type": "string",
            "description": "The notice's type, or \"ping\"."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "succeeded",
              "failed"
            ]
          },
          "attempts": {
            "type": "integer",
            "description": "Attempts made so far."
          },
          "lastAttemptAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "nextAttemptAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "description": "Null once the delivery has succeeded or failed."
          },
          "lastResult": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "http_status",
                  "timeout",
                  "refused_destination",
                  "tls_failed",
                  "connection_failed",
                  "redirect_not_followed"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "What the last attempt came to. Null before the first."
          },
          "lastStatusCode": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Your server's status code, with http_status and redirect_not_followed."
          }
        },
        "required": [
          "id",
          "eventId",
          "type",
          "status",
          "attempts",
          "lastAttemptAt",
          "nextAttemptAt",
          "lastResult",
          "lastStatusCode"
        ],
        "additionalProperties": false
      },
      "WebhookEndpoint": {
        "type": "object",
        "description": "An address on your server that receives your account's notices as signed POST requests. Its secret is not part of it.",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^wh_[A-Za-z0-9]{22}$",
            "description": "\"wh_…\"."
          },
          "url": {
            "type": "string",
            "description": "The https:// address notices are sent to. It can not be changed."
          },
          "eventTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "saved_search.matches",
                "favorite.listing_updated",
                "favorite.listing_removed",
                "listing.removed",
                "account.suspended",
                "account.reinstated",
                "data.stale"
              ]
            },
            "description": "The notice types the endpoint receives."
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "false pauses the endpoint: nothing is sent to it, and what it misses is not sent later."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "required": [
          "id",
          "url",
          "eventTypes",
          "description",
          "enabled",
          "createdAt"
        ],
        "additionalProperties": false
      }
    }
  }
}
