> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/cli/commands/notifications.md).

# notifications

Manage per-user notification subscriptions — the email and webhook alerts routed on flow, connection, and integration events (errors, status changes, completions).

**REST API**: [Notifications](https://developer.celigo.com/api/api-reference/monitoring/notifications)

```
celigo notifications <subcommand> [flags]
```

Supports all [global flags](https://developer.celigo.com/cli/getting-started/global-flags.md).

***

## Subcommands

| Subcommand    | Purpose                                                                         |
| ------------- | ------------------------------------------------------------------------------- |
| `list`        | List every notification subscription in the account.                            |
| `subscribe`   | Subscribe a user to one or more flows, connections, integrations, or syncs.     |
| `unsubscribe` | Unsubscribe a user from one or more flows, connections, integrations, or syncs. |

***

## `celigo notifications list`

List all notification subscriptions in the account.

**Signature**

```bash
celigo notifications list
```

**Arguments**

None.

**Flags**

| Flag              | Type   | Default   | Description                                                                                                                                                                                                                                                                           |
| ----------------- | ------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--fields <spec>` | string | `default` | Fields to return per row. `default` returns `_id`, `name`, and the table columns; `all` returns complete documents; a comma-separated list requests specific fields (dot notation allowed). See [field projection](https://developer.celigo.com/cli/getting-started/global-flags.md). |

**Example**

```bash
celigo notifications list --format table
```

Default table columns: `_id`, `type`, `_integrationId`, `_flowId`, `_connectionId`, `_syncId`, `subscribedByUser.email`, `lastModified`. Since celigo-cli 2026.10.1 the table shows a sync subscription's `_syncId`.

**Corresponds to**: [`GET /v1/notifications?users=all`](https://developer.celigo.com/api/api-reference/monitoring/notifications#get-v1-notifications)

***

## `celigo notifications subscribe`

Subscribe a user to notifications on one or more resources. At least one of `--flow`, `--connection`, `--integration`, or `--sync` must be provided. The CLI builds one subscribe item per ID and, since celigo-cli 2026.10.1, sends at most 500 items per request, the API's limit. Runs in `operate` mode.

Since celigo-cli 2026.10.1 the output is every batch's per-item results — each row naming the resource its item targeted (`_flowId`, `_connectionId`, `_integrationId`, or `_syncId`) beside the `statusCode` — and the command exits `1` when the API refused any item, with a count on stderr: `1 of 3 notification items failed (statusCode 4xx above); the rest were applied.`

With `--schema-drift`, the subscription is to a sync's schema-drift emails instead of its errors: for one sync with `--sync`, or for every sync of an integration with `--integration`. `--flow` and `--connection` are refused with it, before any request: `--schema-drift subscribes to a sync's schema-drift emails: it takes --sync or --integration, not --flow or --connection.` Added in celigo-cli 2026.11.2.

**Signature**

```bash
celigo notifications subscribe --user <email> [--flow <ids...>] [--connection <ids...>] [--integration <ids...>] [--sync <ids...>] [--schema-drift]
```

**Arguments**

None. Targets are supplied via flags.

**Flags**

| Flag                     | Type      | Required | Description                                                                                                                            |
| ------------------------ | --------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `--user <email>`         | string    | Yes      | Email of the user to subscribe.                                                                                                        |
| `--flow <ids...>`        | string\[] | No       | One or more flow IDs to subscribe the user to. Repeatable.                                                                             |
| `--connection <ids...>`  | string\[] | No       | One or more connection IDs. Repeatable.                                                                                                |
| `--integration <ids...>` | string\[] | No       | One or more integration IDs. Repeatable.                                                                                               |
| `--sync <ids...>`        | string\[] | No       | One or more sync IDs. Repeatable. Added in celigo-cli 2026.10.1.                                                                       |
| `--schema-drift`         | boolean   | No       | Subscribe to schema-drift emails instead of error notifications. With `--sync` or `--integration` only. Added in celigo-cli 2026.11.2. |

**Examples**

```bash
celigo notifications subscribe --user jane@example.com --flow 69497fc443fc1f9a03d31bd9
celigo notifications subscribe --user jane@example.com --connection 5e5eb06fdd83ed4f8206a4ea --connection 5efe49fd2c1111472296f389
celigo notifications subscribe --user jane@example.com --integration 62c0b8ab1234567890abcdef --flow 69497fc443fc1f9a03d31bd9
celigo notifications subscribe --user jane@example.com --sync 5f83a9b2c7d3e8f1a2b3c4d5

# A sync's schema-drift emails, instead of its errors
celigo notifications subscribe --user jane@example.com --schema-drift --sync 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`PUT /v1/notifications`](https://developer.celigo.com/api/api-reference/monitoring/notifications#put-v1-notifications) (one item per ID, `subscribed: true`; with `--schema-drift`, each item also carries `type: "sync_schema_drift"`)

***

## `celigo notifications unsubscribe`

Unsubscribe a user from notifications on one or more resources. At least one of `--flow`, `--connection`, `--integration`, or `--sync` must be provided. Same batching, per-item results, and exit code as `subscribe`. Runs in `operate` mode.

With `--schema-drift`, the command removes a schema-drift email subscription instead: for one sync with `--sync`, or for every sync of an integration with `--integration`. As on `subscribe`, `--flow` and `--connection` are refused with it. Added in celigo-cli 2026.11.2.

**Signature**

```bash
celigo notifications unsubscribe --user <email> [--flow <ids...>] [--connection <ids...>] [--integration <ids...>] [--sync <ids...>] [--schema-drift]
```

**Arguments**

None. Targets are supplied via flags.

**Flags**

| Flag                     | Type      | Required | Description                                                                                                                                |
| ------------------------ | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `--user <email>`         | string    | Yes      | Email of the user to unsubscribe.                                                                                                          |
| `--flow <ids...>`        | string\[] | No       | One or more flow IDs to unsubscribe from. Repeatable.                                                                                      |
| `--connection <ids...>`  | string\[] | No       | One or more connection IDs. Repeatable.                                                                                                    |
| `--integration <ids...>` | string\[] | No       | One or more integration IDs. Repeatable.                                                                                                   |
| `--sync <ids...>`        | string\[] | No       | One or more sync IDs. Repeatable. Added in celigo-cli 2026.10.1.                                                                           |
| `--schema-drift`         | boolean   | No       | Unsubscribe from schema-drift emails instead of error notifications. With `--sync` or `--integration` only. Added in celigo-cli 2026.11.2. |

**Examples**

```bash
celigo notifications unsubscribe --user jane@example.com --flow 69497fc443fc1f9a03d31bd9
celigo notifications unsubscribe --user jane@example.com --connection 5e5eb06fdd83ed4f8206a4ea --connection 5efe49fd2c1111472296f389
celigo notifications unsubscribe --user jane@example.com --sync 5f83a9b2c7d3e8f1a2b3c4d5
celigo notifications unsubscribe --user jane@example.com --schema-drift --sync 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`PUT /v1/notifications`](https://developer.celigo.com/api/api-reference/monitoring/notifications#put-v1-notifications) (one item per ID, `subscribed: false`; with `--schema-drift`, each item also carries `type: "sync_schema_drift"`)

***

## Gotchas

* **One resource type per item.** Each subscribe/unsubscribe item targets exactly one of `_flowId`, `_connectionId`, `_integrationId`, or `_syncId`. Passing multiple target flags on one command is fine — the CLI expands them into separate items.
* **Account-scoped admin op.** `list` passes `users=all`, so it returns subscriptions for every user in the account, not just the caller's own.
* **Per-item results, overall `200 OK`.** The underlying `PUT /v1/notifications` always returns `200 OK` even when individual items fail (e.g. a referenced `_flowId` doesn't exist returns `statusCode: 422` on that item only). Since celigo-cli 2026.10.1 each result row names its item's resource, and the command exits `1` when any item's `statusCode` is `400` or above, so a script can rely on the exit code.
* **Batched at 500.** Since celigo-cli 2026.10.1 large subscribe/unsubscribe requests are chunked at the API's limit of 500 items, and the CLI prints the per-item results of every batch (it printed only the last batch's).
* **The response is not the subscription object.** `PUT` returns a per-item status array — run `celigo notifications list` afterward to read the post-upsert state.

## Related

* [subscriptions](https://developer.celigo.com/cli/commands/subscriptions.md) — account-level license/plan subscriptions and usage (unrelated to notification subscriptions despite the name overlap).
* [workspace-users](https://developer.celigo.com/cli/commands/workspace-users.md) — manage the users whose emails appear in `--user`.
* [flows](https://developer.celigo.com/cli/commands/flows.md), [connections](https://developer.celigo.com/cli/commands/connections.md), [integrations](https://developer.celigo.com/cli/commands/integrations.md), [syncs](https://developer.celigo.com/cli/commands/syncs.md) — the resources you subscribe users to.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/cli/commands/notifications.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
