API reference: Alerts
Save a search
POST
https://dev.siteswap.pro/api/v1/saved-searchesSaves a search the way the Save search button does: the filters are read again on the server, and only what a browse page accepts is kept. New matches arrive as notifications.
Needs the alerts scope.
Needs an API key or sign-in token in Authorization: Bearer or X-API-Key. Authentication
Body
marketplacestringrequiredA marketplace key, as
GET /marketplaces lists them, for example materialsquerystringdefault ""The filters as a query string, with the names of
GET /listings (or of a browse address on the site), for example q=rebar&zip=01801&radius=50namestringrequiredmode"instant" | "daily"default "instant"Responses
201Created
400bad_request, key_in_url or invalid_json: the request could not be read
401missing_key or invalid_key: no key, or a key that is not valid or was revoked
403key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
404not_found: nothing here that you may see
413too_large: the body is over 256 KB
429rate_limited or daily_quota: wait for Retry-After seconds
Response fields
idstringrequirednamestringrequiredmarketplacestringrequiredquerystringrequiredThe browse address it watches
mode"instant" | "daily"requiredA notification per match, or one summary a day
pausedbooleanrequiredmatchesintegerrequiredListings matched so far
created_atstringrequiredWhen it was saved. ISO 8601 in UTC
SiteSwap API v1Support