Skip to content

Saved searches

View .mdllms.txt

Searches a user has saved, with a daily email of what’s new for them when alerts are on. Generated from the OpenAPI spec. Each endpoint says which key it needs; see Authentication.

Method Path What it does
GET /v1/me/saved-searches List saved searches
POST /v1/me/saved-searches Save a search
DELETE /v1/me/saved-searches/{id} Delete a saved search
PUT /v1/me/saved-searches/{id}/alerts Turn a saved search’s emails on or off

GET /v1/me/saved-searches · operation listSavedSearches

Newest first.

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Responses: 200 ListSavedSearchesResponse · default a problem

POST /v1/me/saved-searches · operation saveSearch

The filters are GET /v1/listings’s. With alerts on (the default), the customer is emailed once a day what’s been put on sale for it, if anything, in one email for all their searches. Up to 50 per customer.

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Body (application/json): SaveSearchRequest

Responses: 201 SavedSearchBody · default a problem

DELETE /v1/me/saved-searches/{id} · operation deleteSavedSearch

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Parameters

Name In Type Notes
id * path string

Responses: 204 No Content · default a problem

PUT /v1/me/saved-searches/{id}/alerts · operation setSavedSearchAlerts

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Parameters

Name In Type Notes
id * path string

Body (application/json): SetSavedSearchAlertsRequest

Responses: 200 SavedSearchBody · default a problem

Fields marked * are always present in responses and required in requests.

Field Type Notes
items * SavedSearchBody[]
Field Type Notes
alerts boolean Email what’s new for it; true when omitted
filters * SearchFilters
link string Where the shop shows it, as a path (/shop/lighting?brand=…), for the emails to link to. max 2000 chars
name * string What the customer calls it, e.g. Louis Poulsen lamps. max 100 chars
Field Type Notes
alerts * boolean Emailed what’s new for it, once a day
created_at * string (date-time)
filters * SearchFilters
id * string
link string
name * string
Field Type Notes
alerts * boolean
Field Type Notes
attr string[] key:value, e.g. condition:excellent
categories string[] In any of these categories, each with its subcategories
category string
currency string The prices’ currency
location string[] Stored at any of these locations (ids), or seller: still with the seller
max_price integer In minor units of currency. ≥ 0
min_price integer In minor units of currency. ≥ 0
q string max 200 chars
term string[] Catalogue term ids