---
title: "Llm Audit Summary"
method: GET
path: "/api/v1/admin/llm-audit/summary"
tags: ["admin"]
---

# Llm Audit Summary

`GET /api/v1/admin/llm-audit/summary`

## Request

- Base URL: `https://app.goodleads.club` (the document declares no server; this is the origin it was published from)
- URL: `https://app.goodleads.club/api/v1/admin/llm-audit/summary`
- Auth: API key in header `X-API-Key`

Aggregate repeat-spend view over the last `days` of LLM calls.

Read-only, admin-key gated; runs on the read session (replica when one is
configured). Out-of-range `days` is a 422, not a silent reinterpretation.

## Query parameters

- `days` integer

## Response `200`

Successful Response

- LlmAuditSummary
  - `window_days` integer, required
  - `total_calls` integer, required
  - `unique_prompts` integer, required: Distinct prompt hashes across ALL agents (a true global distinct, not a per-agent sum)
  - `repeat_calls` integer, required
  - `repeat_rate` number, required
  - `agents` LlmAuditAgentSummary[], required
    - `agent_id` string, required
    - `calls` integer, required
    - `unique_prompts` integer, required
    - `repeat_calls` integer, required: calls - unique_prompts: the re-paid work a harvest store would answer for free
    - `repeat_rate` number, required
    - `input_tokens` integer, required
    - `output_tokens` integer, required
    - `errors` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/goodleads/apis/formation-gtm-api.md) · [All operations](https://skmtc.dev/goodleads/apis/formation-gtm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodleads/apis/formation-gtm-api/revisions/2068d13a82cf?raw)
