# Saved searches A consumer's own searches, kept so your site can tell them when a listing newly matches. A saved search is a set of filters, an optional name and an alert frequency. **Every tier** has them. Consumer identity comes only from the auth context, as for [favorites](favorites.md): a client token with a `pk_` key, or `X-Client-Id` with an `sk_` key. A `pk_` request without a token is `401 client_token_required`; an `sk_` request without `X-Client-Id` is `400 validation_failed`. A saved search belongs to one consumer: an ID from another consumer or another account is `404 not_found`, never `403`. A consumer may keep up to 100. The API never emails your visitors. When a saved search matches, the API records a thin [notice](../concepts/webhooks.md) (`saved_search.matches`, with listing keys and reasons only), which reaches you by webhook or through [`GET /v1/events`](endpoints/list-events.md), and your site decides what to send ([alert emails](../guides/alert-emails.md)). ## The object ```json { "id": "ss_…", "name": "Ardmore under 500k", "criteria": { "price": { "max": 500000 }, "location": { "placeIds": ["pl_…"] } }, "alertFrequency": "daily", "status": "active", "createdAt": "2026-11-13T15:00:00.000Z", "updatedAt": "2026-11-13T15:00:00.000Z" } ``` ### criteria The body of [`POST /v1/listings/search`](endpoints/search-listings-body.md), with **filters only** ([SearchFilters](objects.md#searchfilters)). It is checked by the same code as a search, for the same tier: - `cursor`, `limit` and `sort` are not filters: `400 validation_failed`, naming each. - A drawn shape (`location.shape`) can't be kept in a saved search: `400 validation_failed`. Save the shape first with [`POST /v1/saved-shapes`](endpoints/create-saved-shape.md), then name it with `location.shapeId`. - `location.shapeId` must be the same consumer's saved shape, otherwise `404 not_found`. - A place ID that doesn't exist (or was retired) is `404 not_found`. - **Premium criteria:** `location.shapeId`, and a school district among `location.placeIds`, need a Premium account. On Basic they are `403 tier_insufficient`. A Premium location kind is refused before anything else about the request is looked at, as in search. Every other problem with the request comes back in one `400 validation_failed`, with each field named under `body.` (for example `body.criteria.price.max`). ### alertFrequency Always required when you create a saved search. It is never guessed from the name. | Value | When the consumer's matches are gathered into a notice | | --------- | ------------------------------------------------------------------ | | `instant` | After each sync cycle, usually within minutes of the change | | `daily` | Once a day at 7:00 am Eastern, covering the day before | | `weekly` | Mondays at 7:00 am Eastern, covering the week before | | `off` | Never. The search is only kept | A listing alerts when it is new, when its price or status changes, or when it comes back on the market, and it matches the search at the moment the notice is made. **Listings that already match when a search is created never alert.** The same holds when you change its `criteria`, and when you turn alerts back on from `off`. ### status Worked out again on every read. Show it to the consumer. | Value | Meaning | | ------------------ | ------------------------------------------------------------------------ | | `active` | The search is evaluated at its frequency | | `paused_tier` | Its criteria need Premium and the account is on Basic | | `paused_suspended` | The account is suspended | | `paused_invalid` | Its criteria are no longer accepted, for example a place that was retired | A paused search produces no notices. When it becomes active again it does **not** catch up: changes that happened while it was paused never alert. Nothing is deleted or widened by a pause. A `paused_invalid` search is fixed by sending new `criteria`. ## Saved shapes in use A saved shape that a saved search names can't be deleted: `DELETE /v1/saved-shapes/{id}` answers [`409 shape_in_use`](../errors/shape_in_use.md) with the IDs of the searches that use it. Edit or delete those first. ## Deleting a consumer, and downgrades `DELETE /v1/clients/{clientId}` removes the consumer's saved searches, their notices and their saved shapes with everything else of theirs. After a downgrade to Basic nothing is deleted: searches with Premium criteria read `paused_tier` from the next request, and they are active again as soon as the account is Premium. ## Endpoints Each has its own page, with its parameters, its answers field by field and its errors: - [`POST /v1/saved-searches`](endpoints/create-saved-search.md) - [`GET /v1/saved-searches`](endpoints/list-saved-searches.md) - [`GET /v1/saved-searches/{id}`](endpoints/get-saved-search.md) - [`PATCH /v1/saved-searches/{id}`](endpoints/update-saved-search.md) - [`DELETE /v1/saved-searches/{id}`](endpoints/delete-saved-search.md)