# List events

`opensend events list`

The events the workspace knows, newest first, each with how often it was sent and when last.

Needs the scope: `events:read`

## Flags

- `--q` (string): Text to search for. Only items that contain it are returned. Up to 40 characters.
- `--limit` (integer): How many items to return, from 1 to 100. Without it you get 25.
- `--offset` (integer): How many items to skip. Use it with `limit` to read the next page. Default: `0`.
- `--after` (string): The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.
- `--before` (string): The id of the first item you have. The answer ends with the item just before it. Give this or `after`, not both. Up to 64 characters.

## Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. [Output and scripts](https://opensend.sh/docs/scripting) lists the codes.

- `object` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("event"): Always `event`.
- `data[].id` (string): The id of the event.
- `data[].name` (string): The name of the event, such as `order.paid`.
- `data[].schema` (Record<string, string> | null): The type of each value its data has to carry: `string`, `number`, `boolean` or `date`. `null` takes any data.
- `data[].received` (integer): How many times it has been sent.
- `data[].lastReceivedAt` (string | null): When it was last sent, or `null`.
- `data[].createdAt` (string): When the event was first defined or sent.
- `total` (integer): How many items match in all, on every page together.
- `hasMore` (boolean): Whether more items follow this page.

## Example

CLI:

```bash
opensend events list
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "event",
      "id": "evt_cart.abandoned",
      "name": "cart.abandoned",
      "schema": null,
      "received": 0,
      "lastReceivedAt": null,
      "createdAt": "2026-11-15T09:30:00.000Z"
    },
    {
      "object": "event",
      "id": "evt_customer.quiet",
      "name": "customer.quiet",
      "schema": null,
      "received": 1140,
      "lastReceivedAt": "2026-11-24T09:30:00.000Z",
      "createdAt": "2026-10-18T09:30:00.000Z"
    },
    {
      "object": "event",
      "id": "evt_order.paid",
      "name": "order.paid",
      "schema": {
        "total": "number"
      },
      "received": 5310,
      "lastReceivedAt": "2026-11-27T09:22:00.000Z",
      "createdAt": "2026-09-08T09:30:00.000Z"
    },
    {
      "object": "event",
      "id": "evt_user.signed_up",
      "name": "user.signed_up",
      "schema": null,
      "received": 2480,
      "lastReceivedAt": "2026-11-27T09:28:00.000Z",
      "createdAt": "2026-08-29T09:30:00.000Z"
    }
  ],
  "total": 4,
  "hasMore": false
}
```
