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 |
List saved searches
Section titled “List saved searches”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
Save a search
Section titled “Save a search”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 a saved search
Section titled “Delete a saved search”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
Turn a saved search’s emails on or off
Section titled “Turn a saved search’s emails on or off”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
Schemas
Section titled “Schemas”Fields marked * are always present in responses and required in requests.
ListSavedSearchesResponse
Section titled “ListSavedSearchesResponse”| Field | Type | Notes |
|---|---|---|
items * |
SavedSearchBody[] |
SaveSearchRequest
Section titled “SaveSearchRequest”| 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 |
SavedSearchBody
Section titled “SavedSearchBody”| 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 |
SetSavedSearchAlertsRequest
Section titled “SetSavedSearchAlertsRequest”| Field | Type | Notes |
|---|---|---|
alerts * |
boolean |
SearchFilters
Section titled “SearchFilters”| 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 |