---
title: "List LLM request traces"
method: GET
path: "/v1/default/banks/{bank_id}/llm-requests"
tags: ["LLM Traces"]
---

# List LLM request traces

`GET /v1/default/banks/{bank_id}/llm-requests`

## 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}/llm-requests`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vectorize/apis/hindsight-http-api/docs/v1/default/banks/:bank_id/llm-requests/get.ts> (a function with typed inputs; its response is checked against the schema)

List traced LLM requests for a bank, ordered by most recent first. Requires LLM request tracing to be enabled (HINDSIGHT_API_LLM_TRACE_ENABLED). Requests older than HINDSIGHT_API_LLM_TRACE_RETENTION_DAYS are deleted; `retention_days` in the response says how many days are kept (null = forever).

## Path parameters

- `bank_id` string, required

## Query parameters

- `status` string, nullable: Filter by status (success, error)
- `operation` string, nullable: Filter by operation (retain, reflect, consolidation)
- `scope` string, nullable: Filter by call scope
- `call_type` 'llm' | 'embedding' | 'rerank' | 'decision', nullable: Filter by kind of model call, told apart by scope: embedding (embedding_*), rerank, decision (decision_*), or llm (every other scope)
- `provider` string, nullable: Filter by LLM provider
- `trace_id` string, nullable: Filter to one operation run (all LLM calls sharing a trace)
- `document_id` string, nullable: Filter to LLM calls that processed a given document
- `memory_id` string, nullable: Filter to the operation run(s) that produced or consumed a given memory_unit
- `group` boolean: Paginate by operation run (trace) instead of by call; returns whole runs
- `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

- LLMRequestListResponse: Paginated list of LLM request traces for a bank.
  - `bank_id` string, required
  - `total` integer, required
  - `limit` integer, required
  - `offset` integer, required
  - `items` LLMRequestEntry[], required
    - `id` string, required
    - `bank_id` string, nullable, required
    - `operation` string, nullable, required
    - `scope` string, nullable, required
    - `trace_id` string, nullable, required
    - `span_id` string, nullable, required
    - `parent_span_id` string, nullable, required
    - `provider` string, nullable, required
    - `model` string, nullable, required
    - `status` string, required
    - `started_at` string, nullable, required
    - `ended_at` string, nullable, required
    - `duration_ms` integer, nullable, required
    - `input_tokens` integer, nullable, required
    - `output_tokens` integer, nullable, required
    - `cached_tokens` integer, nullable, required
    - `thoughts_tokens` integer, nullable, required
    - `total_tokens` integer, nullable, required
    - `input` unknown
    - `output` unknown
    - `error` string, nullable, required
    - `llm_info` object, required
    - `metadata` object, required
  - `retention_days` integer, nullable

## Other responses

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

## Changes

- **2026-11-07** `45e711cd0897`: 2 info
  - added the new optional `query` request parameter `call_type`
  - added the optional property `retention_days` to the response with the `200` status
- **2026-10-04** `4fda98b75f63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vectorize/apis/hindsight-http-api/changes/v1/default/banks/:bank_id/llm-requests/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)
