---
title: "List audit logs"
method: GET
path: "/v1/default/banks/{bank_id}/audit-logs"
tags: ["Audit"]
---

# List audit logs

`GET /v1/default/banks/{bank_id}/audit-logs`

## Request

- Base URL: `https://hindsight.vectorize.io` (the document declares no server; this is the origin it was published from)
- URL: `https://hindsight.vectorize.io/v1/default/banks/{bank_id}/audit-logs`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vectorize/apis/hindsight-http-api/docs/v1/default/banks/:bank_id/audit-logs/get.ts> (a function with typed inputs; its response is checked against the schema)

List audit log entries for a bank, ordered by most recent first.

## Path parameters

- `bank_id` string, required

## Query parameters

- `action` string, nullable: Filter by action type
- `transport` string, nullable: Filter by transport (http, mcp, system)
- `start_date` string, nullable: Filter from this ISO datetime (inclusive)
- `end_date` string, nullable: Filter until this ISO datetime (exclusive)
- `limit` integer: Max items to return
- `offset` integer: Offset for pagination

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- AuditLogListResponse: Response model for list audit logs endpoint.
  - `bank_id` string, required
  - `total` integer, required
  - `limit` integer, required
  - `offset` integer, required
  - `items` AuditLogSummary[], required: Entries without request/response bodies; fetch one entry by id for its bodies.
    - `id` string, required
    - `action` string, required
    - `transport` string, required
    - `bank_id` string, nullable, required
    - `started_at` string, nullable, required
    - `ended_at` string, nullable, required
    - `duration_ms` integer, nullable: Server-computed duration in milliseconds (started_at → ended_at). Null if not yet completed.
    - `metadata` object, required

## Other responses

- `404`: The bank does not exist.
- `422`: Validation Error

## Changes

- **2026-11-07** `45e711cd0897`: 2 breaking
  - removed the required property `items/items/request` from the response with the `200` status
  - removed the required property `items/items/response` from the response with the `200` status
- **2026-10-04** `4fda98b75f63`: 1 warning, 1 info
  - removed the optional property `detail/items/url` from the response with the `422` status
  - added the non-success response with the status `404`
- **2026-05-15** `0d08f271b9db`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vectorize/apis/hindsight-http-api/changes/v1/default/banks/:bank_id/audit-logs/get.md)

---

[API](https://skmtc.dev/vectorize/apis/hindsight-http-api.md) - [All operations](https://skmtc.dev/vectorize/apis/hindsight-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vectorize/apis/hindsight-http-api/revisions/45e711cd0897?raw)
