# List events

`GET https://api.cademi.com.br/api/v3/events`

Operation ID: `events.list` · API v3

Lists the public events of the current account. Internal event types are never returned.

Results are paginated by cursor and sorted by ID in ascending order unless `sort` specifies otherwise. The collection can be filtered by event type, resource type, resource ID, and occurrence time.

Newly recorded events become visible after a short delay of a few seconds, so the most recent events may not appear immediately.

Required permissions: `events.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `limit` | query | integer | no |  |
| `cursor` | query | string | no |  |
| `sort` | query | string, one of `id`, `-id` | no |  |
| `type[]` | query | array of string | no |  |
| `resource_type` | query | string | no |  |
| `resource_id` | query | string | no |  |
| `occurred_after` | query | string (date-time) | no |  |
| `occurred_before` | query | string (date-time) | no |  |

## Responses

### 200

Returns a page of events.

Body: `data`: array of Event.

Fields of Event:

| Field | Type | Required | Description |
|---|---|---|---|
| `correlation_id` | string | yes |  |
| `data` | object | yes |  |
| `id` | string | yes |  |
| `object` | string, one of `event` | yes |  |
| `occurred_at` | string (date-time) | yes |  |
| `request_id` | string or null | yes |  |
| `resource` | object | yes |  |
| `type` | string | yes |  |
| `version` | integer | yes |  |

### 400

The cursor is invalid, or the request contains an unsupported query parameter.

Body: Error.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
