---
title: "Api Caches List Create"
method: POST
path: "/api/caches/list/"
tags: ["logs"]
---

# Api Caches List Create

`POST /api/caches/list/`

POST handler with superadmin-only field protection.

Strips superadmin-only fields from non-superadmin requests before
delegating to OrganizationInjectionMixin.post() for org injection.

## Headers

- `Authorization` string, required

## Request body

- PublicCachedResponseListRequest — Strip org-internal fields and present a single cache_key for the public API. The PG ORM has two fields: - cache_key: internal key with integer org ID (legacy, used by CH enrichment) - cache_key_by_org_uuid: UUID-based key (safe to expose) The public API exposes ONE "cache_key" field whose value comes from cache_key_by_org_uuid. The internal cache_key and the raw cache_key_by_org_uuid field are both removed from the response.
  - `cache_key` string, nullable
  - `cache_key_by_org_uuid` string, nullable
  - `hit_count` integer
  - `timestamp` string, date-time
  - `updated_at` string, date-time
  - `expiry_date` string, date-time, nullable

## Response `201`

- PublicCachedResponseList — Strip org-internal fields and present a single cache_key for the public API. The PG ORM has two fields: - cache_key: internal key with integer org ID (legacy, used by CH enrichment) - cache_key_by_org_uuid: UUID-based key (safe to expose) The public API exposes ONE "cache_key" field whose value comes from cache_key_by_org_uuid. The internal cache_key and the raw cache_key_by_org_uuid field are both removed from the response.
  - `id` integer, required
  - `cache_key` string, nullable
  - `cache_key_by_org_uuid` string, nullable
  - `prompt_content` string, required
  - `response_content` string, required
  - `hit_count` integer
  - `timestamp` string, date-time
  - `updated_at` string, date-time
  - `expiry_date` string, date-time, nullable

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
