Watch an activity for new firms
watch_caenMonitor a CAEN activity code, optionally by county, to surface newly registered firms after a registration-date cutoff; polling advances the cutoff so each firm appears once.
Instructions
Watch a CAEN activity code, optionally scoped to one county, for newly registered firms. A registration-date cutoff is the baseline: only firms registered after it are reported, and poll_watchlist slides the cutoff forward so each new firm surfaces once. A retired CAEN Rev.2 code (6201) also watches its Rev.3 successor (6210), with a warning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | CAEN activity code to watch (e.g. '6210'); a retired Rev.2 code also watches its Rev.3 successor. | |
| county | No | Optional county name to scope the watch to (diacritic-insensitive); omit to watch nationwide. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | true when the watch is in place. | |
| asOf | No | What to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source. | |
| error | No | Set only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted. | |
| watch | No | kind, target, owner (key prefix), county, baseline. | |
| message | No | A sentence for the caller. | |
| warnings | No | Notes on how the request was read (a clamped limit, a widened CAEN code, an ignored field). | |
| attribution | No | The credit line to keep when redistributing the data (CC BY 4.0). | |
| alreadyWatching | No | true when you already held this watch (nothing changed). |