# Limits

> Field limits, rate limits, allowed source and target addresses, and what is not capped yet.

## Fields

| Field | Rule |
|---|---|
| `sourceUrl` | `rtsp`, `rtsps`, `http` or `https`; at most 2048 characters; must be a public host |
| `goal` | 5 to 500 characters after trimming |
| `notify.type` | `email` or `webhook` |
| `notify.target` (email) | Valid address, lowercased, at most 254 characters |
| `notify.target` (webhook) | Public `https` URL, at most 2048 characters |
| `status` (PATCH) | `active` or `paused` |
| `limit` (events) | 1 to 100, default 50 |

Private, loopback and link-local hosts are refused for both the source and the webhook target: `localhost`, `*.localhost`, `*.local`, `*.internal`, `10/8`, `127/8`, `172.16/12`, `192.168/16`, `169.254/16`, `0/8`, `::1`, `fc00::/7`, `fe80::/10`. Webhook delivery checks the address again when it sends, after resolving the name. For a camera on a private network install the [Percia bridge](https://github.com/velvee-ai/percia-bridge) and use `percia-cam://<id>` (see [phone cameras](/docs/phone-camera.md)).

A wider list applies to [connection](/docs/integrations.md) URLs, MCP action servers and `POST /api/watches/:id/test-delivery`: also `100.64/10`, `192.0.0/24`, `198.18/15`, `224/3`, `ff00::/8`, IPv6 forms that embed an IPv4 address (`::ffff:0:0/96`, `::/96`, `64:ff9b::/96`, `2002::/16`), and wildcard DNS names under `nip.io`, `sslip.io` and `xip.io`.

Credentials in an RTSP URL (`rtsp://user:pass@host/...`) are stored for the judge only. API responses and emails show the URL with them removed, and sending the redacted URL back in a `PATCH` leaves the stored credentials unchanged.

## Rates

- Create and other `POST` requests are rate limited per client address and path (about 10 per minute). Over the limit you get 429 and should wait a minute. Honor `Retry-After` when it is present.
- Alert emails: at most 20 per recipient per hour.
- Each watch is judged at a bounded request rate. A watch dropped for budget is reported in its health, not as a decision.

## Per user

| Thing | Cap |
|---|---|
| Agents / concerns per agent | 50 / 10 |
| Sites / notes length | 20 / 2000 characters |
| Phone cameras | 10 |
| Active watches per camera | 10, always (429 `plan_limit`, `limit: "watchesPerStream"`); see [Pricing](/docs/pricing.md) |
| Builder calls, Ask questions | 30 per hour each |
| Agent test runs / cases per run | 10 per hour / 50 |
| Keyframe | JPEG, at most 256 KB; kept 1, 3, 7, 14 or 30 days |
| [Connections](/docs/integrations.md) / rules per watch | 20 / 5 |
| [REST hooks](/docs/hooks.md) | 20 (429 `plan_limit`); `limit` of `GET /api/events` is 1 to 100, default 50 |
| Connection delivery attempts | 120 per hour |

Plan limits (active watches and more) are described in [actions](/docs/actions.md) and are only reported unless enforcement is on. Price, free camera-minutes, credits and the monthly spend cap: [Pricing](/docs/pricing.md).

## Not capped yet

Active-watch caps per plan (see above), retention of event history (keyframe retention is above) and expiry of unclaimed watches are not enforced yet. Do not depend on a particular number; this page changes when they ship.

## Pagination

`GET /api/watches/:id/events` returns `{ events, nextCursor }`, newest first. Pass `nextCursor` back as `cursor`; it is `null` on the last page.
