# Saved searches and notifications

> Follow new listings and read notifications.


Saved searches and notifications belong to a person: with an API key, the person who asked for the key; with a sign-in token, the person signed in.

```bash
curl -X POST "https://dev.siteswap.pro/api/v1/saved-searches" -H "X-API-Key: ssk_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"marketplace":"materials","query":"q=rebar&zip=01801&radius=50","name":"Rebar near the yard","mode":"daily"}'
curl -H "X-API-Key: ssk_YOUR_KEY" "https://dev.siteswap.pro/api/v1/notifications?unread=1"
```

`query` takes the filters of `GET /listings`. They are read again on the server, and only what a browse page accepts is kept, so a saved search always matches what the browse page would show. `instant` makes one notification per new match, `daily` one summary a day.
