---
title: "List all events"
method: POST
path: "/events.list"
tags: ["Events"]
---

# List all events

`POST /events.list`

Events are an audit trail of important events that happen in the knowledge base.

## Request body

- object
  - `offset` number
  - `limit` number
  - `sort` string
  - `direction` 'ASC' | 'DESC'
  - `name` string — Filter to a specific event, e.g. "collections.create". Event names are in the format "objects.verb"
  - `actorId` string, uuid — Filter to events performed by the selected user
  - `documentId` string, uuid — Filter to events performed in the selected document
  - `collectionId` string, uuid — Filter to events performed in the selected collection
  - `auditLog` boolean — Whether to return detailed events suitable for an audit log. Without this flag less detailed event types will be returned.

## Response `200`

OK

- object
  - `data` Event[]
    - `id` string, uuid — Unique identifier for the object.
    - `name` string
    - `modelId` string, uuid — Identifier for the object this event is associated with when it is not one of document, collection, or user.
    - `actorId` string, uuid — The user that performed the action.
    - `actorIpAddress` string — The ip address the action was performed from. This field is only returned when the `auditLog` boolean is true.
    - `collectionId` string, uuid — Identifier for the associated collection, if any
    - `documentId` string, uuid — Identifier for the associated document, if any
    - `createdAt` string, date-time — The date and time that this event was created
    - `data` object — Additional unstructured data associated with the event
    - `actor` User
      - `id` string, uuid — Unique identifier for the object.
      - `name` string — The name of this user, it is migrated from Slack or Google Workspace when the SSO connection is made but can be changed if neccessary.
      - `avatarUrl` string, uri — The URL for the image associated with this user, it will be displayed in the application UI and email notifications.
      - `email` string, email — The email associated with this user, it is migrated from Slack or Google Workspace when the SSO connection is made but can be changed if neccessary.
      - `role` 'admin' | 'member' | 'viewer' | 'guest'
      - `isSuspended` boolean — Whether this user has been suspended.
      - `lastActiveAt` string, date-time — The last time this user made an API request, this value is updated at most every 5 minutes.
      - `createdAt` string, date-time — The date and time that this user first signed in or was invited as a guest.
  - `pagination` Pagination
    - `offset` number
    - `limit` number

## Other responses

- `401` — The API key is missing or otherwise invalid.
- `403` — The current API key is not authorized to perform this action.
- `429` — The request was rate limited.

## Changes

- **2024-10-18** `fdf2ec9c9df4` — 1 info
  - added the non-success response with the status `429`
- **2024-07-06** `7b33b538cd7d` — 6 info
  - added the optional property `data` to the response with the `401` status
  - added the optional property `data` to the response with the `403` status
  - added the optional property `message` to the response with the `401` status
  - added the optional property `message` to the response with the `403` status
  - …2 more

[Change history](https://skmtc.dev/defaulr/apis/outline-api/changes/events.list/post.md)

---

[API](https://skmtc.dev/defaulr/apis/outline-api.md) · [All operations](https://skmtc.dev/defaulr/apis/outline-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/defaulr/outline-api/revisions/fdf2ec9c9df4/schema)
