---
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_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
    - `has_custom_code_upload_events` boolean, required
  - `configuration_options` EventFilterOption[], required
    - `id` string, uuid, required
    - `name` string, required
    - `canonical_url` string, required
  - `total_pages` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-09** `fca481966403`: 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-06-01** `808af89fc071`: 1 info
  - added the required property `audit_events/items/has_custom_code_upload_events` to the response with the `200` status

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

---

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