SiteSwapDevelopers
API reference: Alerts

Save a search

POSThttps://dev.siteswap.pro/api/v1/saved-searches

Saves 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

marketplacestringrequired
A marketplace key, as GET /marketplaces lists them, for example materials
querystringdefault ""
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=50
namestringrequired
mode"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

idstringrequired
namestringrequired
marketplacestringrequired
querystringrequired
The browse address it watches
mode"instant" | "daily"required
A notification per match, or one summary a day
pausedbooleanrequired
matchesintegerrequired
Listings matched so far
created_atstringrequired
When it was saved. ISO 8601 in UTC
SiteSwap API v1Support