Watchers
RevOps rules that fire on entity conditions. Each watcher watches one field on one entity; evaluating it records a fire row per matching record.
All endpoints require a Bearer JWT in the Authorization header plus an X-Workspace-Id header selecting the workspace.
Watchable fields
deal: value, stage, probability company: employees, tier, lifecycle_stage contact: score, stage issue: priority, status, story_points operators: equals | not_equals | over | under | contains
GET
/api/watchersAuth requiredList watchers with their fire counts.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| enabled | boolean | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"name": "Big deals stalling",
"entity": "deal",
"field": "value",
"operator": "over",
"value": "100000",
"action": "flag",
"enabled": true,
"fires": 3
}
]POST
/api/watchersAuth requiredCreate a watcher. Returns 422 for an unknown entity, operator, or non-watchable field.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | Yes | Required |
| entity | string | Yes | deal | company | contact | issue |
| field | string | Yes | Must be watchable on the entity |
| operator | string | Yes | equals | not_equals | over | under | contains |
| value | string | No | Compared against the field |
| action | string | No | Default 'flag' |
| enabled | boolean | No | Default true |
Response
{
"id": 2,
"name": "Whale companies",
"entity": "company",
"field": "employees",
"operator": "over",
"value": "1000",
"enabled": true,
"fires": 0
}GET
/api/watchers/firesAuth requiredList fire history across watchers, newest first.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| watcher_id | number | No | — |
| limit | number | No | Default 50, max 200 |
Response
[
{
"id": 4,
"workspace_id": 1,
"watcher_id": 1,
"watcher_name": "Big deals stalling",
"entity": "deal",
"entity_id": 7,
"summary": "Big deals stalling: deal #7 matched value over 100000"
}
]GET
/api/watchers/{watcher_id}Auth requiredGet a watcher with its fire count.
Response
{
"id": 1,
"name": "Big deals stalling",
"entity": "deal",
"field": "value",
"operator": "over",
"value": "100000",
"enabled": true,
"fires": 3
}PATCH
/api/watchers/{watcher_id}Auth requiredUpdate a watcher. All fields optional; returns 400 when no fields are provided.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | No | — |
| entity | string | No | — |
| field | string | No | — |
| operator | string | No | — |
| value | string | No | — |
| action | string | No | — |
| enabled | boolean | No | — |
Response
{ "id": 1, "name": "Big deals stalling", "enabled": false, "fires": 3 }DELETE
/api/watchers/{watcher_id}Auth requiredDelete a watcher and its fire history.
Response
{ "deleted": 1 }POST
/api/watchers/{watcher_id}/evaluateAuth requiredRun the watcher's condition against live rows and record one fire per match. Disabled watchers return zero matches.
Response
{ "watcher_id": 1, "matches": [7, 12], "fires_recorded": 2 }