> 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/event-reports.md).

# event-reports

Manage event reports — async exports of integration event data that build in the background and are downloaded via a signed URL.

**REST API**: [Event reports](https://developer.celigo.com/api/api-reference/monitoring/event-reports)

```
celigo event-reports <subcommand> [args] [flags]
```

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

## Subcommands

| Subcommand        | Purpose                                                                                                                         |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `list`            | List all event reports.                                                                                                         |
| `get <id>`        | Get an event report by ID.                                                                                                      |
| `create`          | Create an event report — the events of one or more flows over a window of up to 3 days — from a JSON body (stdin, or `--file`). |
| `signed-url <id>` | Get the signed download URL for an event report.                                                                                |
| `cancel <id>`     | Cancel an in-progress event report.                                                                                             |

***

## `celigo event-reports list`

List all event reports in the account.

**Signature**

```bash
celigo event-reports list [flags]
```

**Flags**

| Flag | Type | Default | Description |
| ---- | ---- | ------- | ----------- |

No command-specific flags. Uses global flags only.

Default table columns: `_id`, `status`, `type`, `createdAt`. Since celigo-cli 2026.10.1 the table shows `createdAt` in place of a `lastModified` column, which event reports do not carry.

**Example**

```bash
celigo event-reports list --format table
```

**Corresponds to**: `GET /v1/eventreports` (operationId: `listEventReports`)

***

## `celigo event-reports get`

Get one event report by ID.

**Signature**

```bash
celigo event-reports get <id>
```

**Arguments**

| Argument | Type   | Required | Description      |
| -------- | ------ | -------- | ---------------- |
| `<id>`   | string | Yes      | Event report ID. |

**Example**

```bash
celigo event-reports get 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: `GET /v1/eventreports/{_id}` (operationId: `getEventReportById`)

***

## `celigo event-reports create`

Create an event report. Reads the JSON body from stdin, or from a file with `--file`. Requires `full` mode.

The report is queued: poll [`event-reports get <id>`](#celigo-event-reports-get) until its `status` is `completed` — generation can take minutes — then [`event-reports signed-url <id>`](#celigo-event-reports-signed-url) gives the CSV's download URL.

Since celigo-cli 2026.10.1, `create` runs the checks every other write runs before it sends the body. It refuses, with no override, a body that is not a JSON object, a masked `******` credential placeholder, and a `responseMapping` object wrapper; the body is also checked against the published API schemas, and findings print on stderr as warnings without blocking the request.

Since celigo-cli 2026.10.2, a body with a `flowIds`, `flowId` or `_flowId` key is refused before the request, even beside `_flowIds`: `Refusing to create an event report: it takes its flows as _flowIds, an array of flow ids, and has no flowIds field, which the platform does not read. Rename flowIds to _flowIds: {"_flowIds": ["<flowId>"]}.` The platform reads flows only from `_flowIds`, so earlier releases sent such a body as typed, and the platform refused it as a report without flows.

**Signature**

```bash
celigo event-reports create [flags]
```

**Flags**

| Flag                | Type   | Default | Description                                                             |
| ------------------- | ------ | ------- | ----------------------------------------------------------------------- |
| `-f, --file <path>` | string | stdin   | Read the JSON body from a file instead of stdin (`-` also means stdin). |

**Request body**

Reads JSON on stdin (or from `--file`):

```json
{
  "type": "flow_events",
  "_flowIds": ["5f83a9b2c7d3e8f1a2b3c4d5"],
  "startTime": "2026-10-25T00:00:00.000Z",
  "endTime": "2026-10-27T00:00:00.000Z"
}
```

| Field       | Description                                                                            |
| ----------- | -------------------------------------------------------------------------------------- |
| `type`      | `flow_events`, the only type.                                                          |
| `_flowIds`  | The flows whose events the report covers: an array of flow `_id`s, at least one.       |
| `startTime` | Start of the window, an ISO 8601 time within the last 30 days.                         |
| `endTime`   | End of the window, an ISO 8601 time. Defaults to now. The window spans at most 3 days. |

An older `startTime`, a longer window, an `endTime` before the `startTime`, or an empty `_flowIds` is refused with `422`, and no report is created.

**Example**

```bash
cat report.json | celigo event-reports create
celigo event-reports create --file report.json

# Poll the new report until its status is completed, then get the CSV's download URL
celigo event-reports get 682278b3e4b0a10012abcdef --jq .status
celigo event-reports signed-url 682278b3e4b0a10012abcdef
```

**Corresponds to**: `POST /v1/eventreports` (operationId: `createEventReport`)

***

## `celigo event-reports signed-url`

Get the signed download URL for a completed event report.

**Signature**

```bash
celigo event-reports signed-url <id>
```

**Arguments**

| Argument | Type   | Required | Description      |
| -------- | ------ | -------- | ---------------- |
| `<id>`   | string | Yes      | Event report ID. |

**Example**

```bash
celigo event-reports signed-url 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: `GET /v1/eventreports/{_id}/signedURL` (operationId: `getEventReportSignedUrl`)

***

## `celigo event-reports cancel`

Cancel an in-progress event report. Prompts for confirmation unless `-y` is supplied, and prints `Cancelled event report <id>.` when done. Runs in `operate` mode; `read` mode refuses it before any request.

**Signature**

```bash
celigo event-reports cancel <id> [flags]
```

**Arguments**

| Argument | Type   | Required | Description      |
| -------- | ------ | -------- | ---------------- |
| `<id>`   | string | Yes      | Event report ID. |

**Flags**

| Flag        | Type    | Default | Description        |
| ----------- | ------- | ------- | ------------------ |
| `-y, --yes` | boolean | `false` | Skip confirmation. |

**Example**

```bash
celigo event-reports cancel 5f83a9b2c7d3e8f1a2b3c4d5 -y
```

**Corresponds to**: `PUT /v1/eventreports/{_id}/cancel` (operationId: `cancelEventReport`)


---

# 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/event-reports.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.
