alerts
Proactive alerts notify people when a flow runs longer than a threshold. An alert has the type long-runtime (the only type today) and a longRuntime.thresholdMinutes between 5 and 59940. A flow-level alert names _flowId, and its integration is inferred; an integration-level alert names _integrationId alone and covers every flow in it. There is one alert per type and flow or integration: a second one answers 409 ROUTES_ALERT_DUPLICATE. The API answers 403 when proactive alerts are not enabled for the account. Alerts are not notifications, which subscribe users to error and connection emails.
Recipients are written as emails (_recipientEmails, 1–50) and stored as user ids (_recipientUserIds). An address that is not yet a user of the account is invited, or granted access to the integration — so creating an alert or adding a recipient can send invitations and widen access, which is why every alert write needs full mode. An alert's create, update, and delete also write its threshold onto the flow document or documents it covers.
This command group manages the alerts: the standard verbs plus audit, a set that changes the threshold or the recipient list and keeps the other, and add-recipients / remove-recipients for many alerts at once. To choose a threshold, celigo flows run-stats <flowId> (see flows) reports how long the flow's runs take and suggests one — the data behind the threshold chart in the UI.
Added in celigo-cli 2026.10.1.
REST API: Alerts
celigo alerts <subcommand> [args] [flags]Supports all global flags.
Subcommands
list
List alerts, with the API's server-side filters (integration, flow, recipient, type, last triggered).
get <id>
Fetch one alert by ID.
create
Create an alert from a JSON body (--file <path> or stdin).
update <id>
Replace the threshold and the whole recipient list from a JSON body (--file <path> or stdin).
delete <id>
Delete an alert.
audit <id>
Show the audit log (change history) for one alert.
set <id> key=value …
Change longRuntime.thresholdMinutes or _recipientEmails and keep the other.
add-recipients <emails...>
Add recipients to the alerts you name, or to every alert of one integration.
remove-recipients <emails...>
Remove recipients from the alerts you name, or from every alert of one integration.
celigo alerts list
List the account's alerts, filtered server-side by the flags below. Without --populate, _recipientUserIds holds user ids; with it, each recipient becomes {_id, name, email} and the flow (flow-level alerts) or integration (integration-level alerts) summary object is added.
The alerts list documents no field projection, so rows are trimmed client-side: --fields changes what is printed, not what is transferred. The default projection keeps the recipients and the flow / integration summaries.
Signature
Arguments
None.
Flags
--integration <id>
string
—
Only alerts of this integration. Required for tile-level (shared) users. Sent as _integrationId.
--flow <id>
string
—
Only alerts on this flow. Sent as _flowId.
--recipient <userId>
string
—
Only alerts that notify this user — a user id, not an email. Sent as _recipientUserId.
--type <type>
long-runtime
—
Only alerts of this type. Any other value is rejected locally. Sent as type.
--last-triggered <value>
string
—
never: only alerts that have never fired. Sent as lastTriggeredAt.
--last-triggered-gte <iso>
ISO 8601
—
Only alerts last fired at or after this time. Sent as lastTriggeredAt_gte.
--last-triggered-lte <iso>
ISO 8601
—
Only alerts last fired at or before this time. Sent as lastTriggeredAt_lte.
--populate
boolean
false
Return each recipient as {_id, name, email} and add the flow / integration summary objects. Sent as populate=true.
--fields <spec>
string
default
Fields to return per row. default returns _id and the table columns, plus the recipients and summaries; all returns complete documents; a comma-separated list selects specific fields. Applied client-side — see field projection.
--limit <n>
integer
—
Return at most <n> rows, fetching a single page.
Default table columns: _id, type, _integrationId, _flowId, longRuntime.thresholdMinutes, lastTriggeredAt.
Example
Corresponds to: GET /v1/alerts — with the filters above as query parameters.
celigo alerts get
Fetch one alert by ID. --populate works as on list.
Signature
Arguments
<id>
string
Yes
Alert _id.
Flags
--populate
boolean
false
Return each recipient as {_id, name, email} and add the flow / integration summary objects. Sent as populate=true.
Example
Corresponds to: GET /v1/alerts/{_id}
celigo alerts create
Create an alert from a JSON body. Read the body from a file with -f, --file (recommended), or pipe it on stdin. Every address in _recipientEmails that is not yet a user of the account is invited, or granted access to the integration. Requires full mode.
Signature
Arguments
None.
Flags
-f, --file <path>
string
—
Read the JSON body from a file instead of stdin (--file - also means stdin).
Request body
type
Yes
long-runtime.
_flowId
For a flow-level alert
The flow. Its integration is inferred, so _integrationId may be left out.
_integrationId
For an integration-level alert
The integration; the alert covers every flow in it. Leave out _flowId.
longRuntime.thresholdMinutes
Yes
Minutes a run may take before the alert fires, 5–59940.
_recipientEmails
Yes
1–50 email addresses.
Example
Corresponds to: POST /v1/alerts
celigo alerts update
Replace the threshold and the whole recipient list from a JSON body: {"longRuntime": {...}, "_recipientEmails": [...]}. type, _flowId, and _integrationId never change. Requires full mode.
⚠️ Build the body from
get --populate. The PUT takes the recipients as emails, which only a populated read returns. A body built from a plaingetcarries_recipientUserIds, which the PUT ignores, and the platform refuses it because the alert would have no recipient. To change one field, useset, which rebuilds the body itself.
When the platform refuses a body for its recipients, the CLI adds:
Signature
Arguments
<id>
string
Yes
Alert _id.
Flags
-f, --file <path>
string
—
Read the JSON body from a file instead of stdin (--file - also means stdin).
--force
boolean
false
Submit even if the body contains masked credential values ("******") copied from a GET.
Example
Corresponds to: PUT /v1/alerts/{_id}
celigo alerts delete
Delete an alert. Its threshold is removed from the flow document or documents it covered. Prompts for confirmation unless -y is supplied. Requires full mode.
Signature
Arguments
<id>
string
Yes
Alert _id.
Flags
-y, --yes
boolean
false
Skip the confirmation prompt.
Example
Corresponds to: DELETE /v1/alerts/{_id}
celigo alerts audit
Show the audit log (change history) for one alert. The CLI reads every page.
Signature
Arguments
<id>
string
Yes
Alert _id.
Flags
Uses global flags only.
Example
Corresponds to: GET /v1/alerts/{_id}/audit
celigo alerts set
Change an alert's threshold or its recipients and keep the other. Two fields can be set: longRuntime.thresholdMinutes (5–59940) and _recipientEmails — the whole list, as a JSON array. The API has no PATCH for alerts and its PUT takes recipients as emails, which only a populated read returns, so set reads the alert with populate=true, rebuilds {longRuntime, _recipientEmails} from it, applies your assignments, and PUTs that.
Any other field is refused before any request:
To add or remove one recipient without restating the list, use add-recipients / remove-recipients. set is blocked in read mode, and no alert field is an operational one, so set needs full mode. See Profiles & regions.
Signature
Arguments
<id>
string
Yes
Alert _id.
<key=value>
string
Yes (≥1)
longRuntime.thresholdMinutes=<minutes> and/or _recipientEmails='[…]'.
Flags
Uses global flags only.
Example
Corresponds to: GET /v1/alerts/{_id} with populate=true, then PUT /v1/alerts/{_id}.
celigo alerts add-recipients
Add recipients to many alerts in one call: the alerts you list with --alerts, or every alert of one integration with --integration — exactly one of the two, and one integration per call. An email that is not yet a user of the account is invited, or granted access to the integration. Before sending, the CLI refuses a call that passes both flags or neither, or more than 50 emails. Requires full mode.
When every targeted alert changed, the command prints Added <n> recipient(s). and exits 0. Otherwise it prints the API's failed[] list — each failed alert's _id, the affectedRecipientEmails, and the errors — says on stderr how many alerts could not be updated, and exits 1; the other alerts were updated.
Signature
Arguments
<emails...>
string (variadic)
Yes
Email addresses to add, at most 50.
Flags
--alerts <ids>
string
—
Comma-separated alert IDs.
--integration <id>
string
—
Every alert of this integration.
Example
Corresponds to: PATCH /v1/alerts/bulk/recipients with "action": "add", the emails as _recipientEmails, and _alertIds or _integrationId.
celigo alerts remove-recipients
Remove recipients from many alerts in one call: the alerts you list with --alerts, which may span integrations, or every alert of one integration with --integration — exactly one of the two. An alert's last recipient cannot be removed: such an alert is listed in failed[] (ROUTES_ALERT_BULK_LAST_RECIPIENT) and the command exits 1. When every targeted alert changed, it prints Removed <n> recipient(s). and exits 0. Requires full mode.
Signature
Arguments
<emails...>
string (variadic)
Yes
Email addresses to remove, at most 50.
Flags
--alerts <ids>
string
—
Comma-separated alert IDs.
--integration <id>
string
—
Every alert of this integration.
Example
Corresponds to: PATCH /v1/alerts/bulk/recipients with "action": "remove".
Gotchas
An alert write can invite people. Every address in
_recipientEmailsor anadd-recipientscall that is not yet a user of the account is invited, or granted access to the integration. Every alert write —create,update,delete,set,add-recipients, andremove-recipients— needsfullmode.updatetakes emails;getreturns user ids. Build anupdatebody fromget <id> --populate, or useset, which does that for you. A body copied from a plaingetis refused for having no recipients.--recipienttakes a user id.list --recipientfilters on_recipientUserId, not on an email;list --populateshows which user id belongs to which email.One alert per type and flow or integration. A second
long-runtimealert on the same flow, or on the same integration, answers409 ROUTES_ALERT_DUPLICATE— change the existing one instead.Proactive alerts must be enabled for the account. Without the feature, the API answers
403.add-recipientsandremove-recipientssucceed per alert. A partial failure exits 1 and prints the alerts that failed; the others were changed. An alert's last recipient cannot be removed.Permission modes.
list,get, andauditwork inreadmode. Every other verb needsfull. See Profiles & regions.
Related
flows —
flows run-stats <flowId>reports how long a flow's runs take and suggests a threshold; an alert writes its threshold onto the flows it covers.notifications — error and connection email subscriptions, a separate feature.
integrations — an integration-level alert covers every flow of the integration.
workspace-users — alert recipients are account users; an address that is not one is invited.
Last updated
Was this helpful?