# Concepts

> Cameras, watches, events, keyframes and integrations: the five things in Percia and how they fit.

Page: https://percia.ai/docs/concepts. Index of all docs pages: https://percia.ai/docs/llms.txt

# Concepts

![How Percia works: a camera or video, a goal you write in words, Percia watches, then an alert with a picture to email, Slack, Discord, a webhook or an AI agent](https://percia.ai/docs/img/how-it-works.svg)

The five things below fit together like this.

## Camera

A **camera** is anything that produces video for Percia:

- a phone, tablet or computer you pair by link or QR code (`percia-cam://<id>`),
- a camera on your home or office network, pushed by the [bridge](https://percia.ai/docs/cameras.md#cameras-on-a-private-network) (also `percia-cam://<id>`),
- a public video link (`rtsp://`, `rtsps://`, `http://`, `https://`),
- a video file you upload (`percia-file://<id>`), which plays once.

The address you give a watch is called its `sourceUrl`. You can have up to 50 cameras.

## Watch

A **watch** is one goal on one camera. A goal is a sentence like "A person is standing at the front door". While the watch is active and the camera sends video, Percia checks the picture against the goal and decides, again and again, whether it is true. A watch has an alert target (your email by default, or a webhook) and can also post to connected tools.

One camera can have up to 10 active watches, and an account up to 20 active watches in all. A watch can be paused and resumed, and it pauses itself after 60 minutes without video.

Read more: [Watches and goals](https://percia.ai/docs/watches.md).

## Event

An **event** is one decision "the goal just became true". Percia sends one alert per occurrence: while the goal stays true you are not alerted again. After it clears, the next time it becomes true is a new event.

An event has a `reason` (written by a vision model), a `confidence`, the time, and a keyframe. Events are kept and can be listed with `GET /api/watches/{id}/events` or, across all watches, `GET /api/events`.

## Keyframe and evidence

A **keyframe** is the still picture at the moment the goal was met. New watches keep keyframes by default (set `media: "off"` to store nothing). Keyframes are kept for 1, 3, 7, 14 or 30 days (3 days in the EU, EEA, UK and Switzerland, 7 elsewhere, unless you choose). Percia also cuts short clips for some alerts. Details are in [Limits](https://percia.ai/docs/limits.md#what-is-kept-and-for-how-long).

## Integration

An **integration** (or *connection*) is a place alerts can go: Slack, Discord, Telegram, Home Assistant, IFTTT, Microsoft Teams, PagerDuty, SMS, WhatsApp or a webhook. A person connects each one once, and a *rule* says that a watch posts to it. Read more: [Integrations](https://percia.ai/docs/integrations.md).

## How a decision is made

![How a decision is made: a camera or video goes into Percia, which reads your goal once, splits it into conditions and judges the video; a match becomes an event with a keyframe picture that is delivered by email, webhook, Slack, Discord or to an AI agent](https://percia.ai/docs/img/decision-flow.svg "Percia reads your goal once, splits it into conditions, judges the video, and sends an event with a keyframe to your delivery targets.")

Percia reads your goal once when the watch is created: is it something that *happens* ("a car pulls in") or something that *stays true* ("the gate is open"), what is the visible evidence, and what look-alikes to ignore. A broad goal ("the baby is in danger") is split into several concrete conditions.

## Accounts, keys and scopes

Everything belongs to an account. The API takes a key (`pk_live_...`) or an OAuth token. A key has **scopes** (for example `watches:read`, `watches:write`, `events:read`); a call without the scope answers `403 insufficient_scope` naming it. Billing, API keys and adding a destination always need a person signed in: a key cannot do them.

## Billing in one line

Percia charges for camera time: $0.50 per camera-hour, billed by the exact minute, with 10 free minutes every month. See [Limits, pricing and credits](https://percia.ai/docs/limits.md).
