---
title: "Get Events"
method: GET
path: "/api/v1/events/"
tags: ["events"]
---

# Get Events

`GET /api/v1/events/`

## Request

- The document declares no server URL.
- Auth: none declared

Returns a list of all events for a jurisdiction, ordered from newest to oldest.

Args:
    user (DbUser): The user making the request.
    db (AsyncDatabaseConnection): Database connection.
    logger (Logger): Standard logger.
    page (int): page of events to return to the client.
    canonical_url (str | None): An optional filter on the condition.

Returns:
    EventResponse: A bundle with
        - Total page count
        - The list of AuditEvents relevant for the (optional) filter
        - The list of condition information with potentially filter-able data

## Query parameters

- `page` integer
- `canonical_url` string, nullable

## Response `200`

Successful Response

- EventsResponse: Response needed for the audit log page.
  - `audit_events` AuditEvent[], required
    - `id` string, uuid, required
    - `username` string, required
    - `configuration_display_name` string, required
    - `configuration_version` integer, required
    - `condition_id` string, uuid, nullable, required
    - `action_text` string, required
    - `code_count` integer, nullable, required
    - `created_at` string, date-time, required
    - `event_type` string, required
    - `has_custom_code_upload_events` boolean, required
  - `configuration_options` EventFilterOption[], required
    - `id` string, uuid, required
    - `display_name` string, required
    - `canonical_url` string, required
  - `total_pages` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-23** `c710294a0d33`: 2 breaking, 2 info
  - removed the required property `audit_events/items/configuration_name` from the response with the `200` status
  - removed the required property `configuration_options/items/name` from the response with the `200` status
  - added the required property `audit_events/items/configuration_display_name` to the response with the `200` status
  - added the required property `configuration_options/items/display_name` to the response with the `200` status
- **2026-09-10** `dea8141f50a2`: 1 info
  - added the required property `audit_events/items/event_type` to the response with the `200` status
- **2026-08-20** `0da4aa30f12e`: 1 breaking, 1 info
  - response property `audit_events/items/condition_id` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - added the required property `audit_events/items/code_count` to the response with the `200` status
- **2026-04-29** `501ab3ac238b`: 1 info
  - added the required property `audit_events/items/has_custom_code_upload_events` to the response with the `200` status
- **2026-02-05** `1b704b76a93b`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/changes/api/v1/events/get.md)

---

[API](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner.md) - [All operations](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/llms.txt) - [OpenAPI document](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/revisions/7312cd4b44ac?raw)
