# Monitors and archives

> Scheduled screenshots compared run to run, change alerts, and archives with SHA-256 and RFC 3161 timestamps.

- `POST /v1/monitors` with `name`, `params` (any screenshot parameters), `interval_minutes`, optional `diff_threshold` (default 0.01 = 1% of pixels), `notify` (`webhook_url`, `slack_webhook_url`) and `archive`.
- `GET /v1/monitors`, `GET /v1/monitors/:id` (with the last 50 runs), `PATCH` and `DELETE`.
- A change is reported when the pixel difference reaches the threshold or the visible text changes. Bot challenges and blank pages are recorded but never compared.
- Clocks, visitor counters, rotating ads and carousels change on every load and will be reported as changes. Add their CSS selectors to `hide_selectors` in `params` to ignore them.
- Runs that changed include `diff_image_url`: the earlier screenshot faded, changed pixels in red. The `monitor.changed` webhook carries the same link as `diff_image`.
- Run screenshots and diff images are kept for 90 days; older runs keep their record, with `screenshot_url` and `diff_image_url` set to null. The latest screenshot of each monitor is kept for the next comparison.

## Archives

- Archives contain the screenshot, an MHTML snapshot, a `manifest.json` with their SHA-256, and an RFC 3161 `timestamp.tsr` you can check with `openssl ts -verify`.
- To keep archives in your own bucket, register it with `POST /v1/storage-integrations` (`bucket`, `region`, optional https `endpoint` for S3-compatible storage, `access_key_id`, `secret_access_key`, `path_prefix`) and pass its id as `storage_integration_id`.
- With `"object_lock": { "mode": "COMPLIANCE", "days": 365 }` every archive object is written with S3 Object Lock retention (the bucket must have Object Lock enabled); the retention date is recorded in the manifest. Secrets are encrypted and never returned.
- Archives kept in Shotfly storage are deleted after one year; `stored_until` in `manifest.json` records the date. Archives in your own bucket follow your bucket’s rules.

---

Source: https://shotfly.dev/docs/monitors · Last updated 2026-11-28
