---
title: "List Cost Entries"
method: GET
path: "/api/cost"
tags: ["cost"]
---

# List Cost Entries

`GET /api/cost`

List cost log entries with optional filters.

Access: Admin only (cost data is sensitive per spec section 7.2).

## Query parameters

- `category` string, nullable — Filter by category: enrichment, llm, infra, sending
- `record_id` string, uuid, nullable — Filter by associated record UUID
- `date_from` string, date-time, nullable — Include entries after this datetime (ISO 8601)
- `date_to` string, date-time, nullable — Include entries before this datetime (ISO 8601)
- `page` integer
- `limit` integer

## Response `200`

Successful Response

- PaginatedResponseCostLogOut
  - `data` CostLogOut[], required
    - `id` string, uuid, required
    - `category` string, required
    - `amount_cents` integer, required
    - `description` string, nullable, required
    - `record_type` string, nullable, required
    - `record_id` string, uuid, nullable, required
    - `provider` string, nullable, required
    - `created_at` string, date-time, required
  - `total` integer, required — Total records matching the query (before pagination)
  - `page` integer, required — Current page number (1-indexed)
  - `limit` integer, required — Records per page (default 50, max 200)
  - `has_more` boolean, required — True if (page * limit) < total

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rethoric/apis/rethoric-os.md) · [All operations](https://skmtc.dev/rethoric/apis/rethoric-os/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rethoric/rethoric-os/revisions/76b6d39426f6/schema)
