Watchers
Watchers live at Dashboard → CRM → Watchers: RevOps rules that run a condition against live entity data and record a fire per match. All calls need a Bearer JWT and an X-Workspace-Id header.
What a watcher is
A watcher names an entity, a field on that entity, an operator, and a comparison value, plus a free-text action describing what should happen on a match and an enabled flag. Example: entity deal, field value, operator over, value 50000— "flag every deal over $50k".
Entities and their watchable fields:
| Entity | Watchable fields |
|---|---|
| deal | value, stage, probability |
| company | employees, tier, lifecycle_stage |
| contact | score, stage |
| issue | priority, status, story_points |
Operators are equals / not_equals / over / under / contains. Numeric fields (deal value, probability, employees, contact score, story points) compare as numbers; text fields compare as strings, with contains matching case-insensitively. Creating or updating a watcher with an unknown entity, operator, or a field that is not watchable on that entity is rejected with a 422.
Evaluate and fires
Evaluating a watcher runs its condition against every live row of that entity in your workspace and records one fire row per match, each with a summary like Big deal: deal #7 matched value over 50000. The response returns the matched ids and the fire count. Evaluating a disabled watcher is a no-op — it returns zero matches and records nothing.
The fires log (GET /api/watchers/fires, newest first, filterable by watcher id) is earned, not typed: every entry comes from a real evaluation against real rows, and each watcher's list view carries its total fire count. Deleting a watcher removes its fires with it.
Working in the portal
The portal table shows each watcher's name, entity.field, action text, and enabled state. The Manage card offers Enable / Disable, Evaluate (the raw result is shown inline), and Delete. The create form takes a name, entity, and field — use the entity, field, and operator values from this guide so the API accepts the rule.
Watchers vs guardrails
Watchers observe data (a deal crossed a threshold, a contact score moved); guardrails gate actions (an agent wants to spend, send, or touch a flagged account). A watcher fire can be the reason you write a guardrail — but a watcher never blocks anything by itself. See the Guardrails guide.
API pointers
| Method | Path | What it does |
|---|---|---|
| GET | /api/watchers | List watchers; optional enabled filter; includes fire counts |
| POST | /api/watchers | Create (validates entity / operator / watchable field) |
| GET | /api/watchers/fires | Fire log, newest first; optional watcher_id filter |
| GET | /api/watchers/{id} | Single watcher with fire count |
| PATCH | /api/watchers/{id} | Edit condition, action, or enabled flag |
| DELETE | /api/watchers/{id} | Delete with fires cascade |
| POST | /api/watchers/{id}/evaluate | Run the condition; record one fire per match |