---
title: "Flush the local API-key cache on this worker (admin only)"
method: POST
path: "/v1/admin/api-keys/cache/flush"
---

# Flush the local API-key cache on this worker (admin only)

`POST /v1/admin/api-keys/cache/flush`

## Request

- Base URL: `https://api.clichefactory.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.clichefactory.com/v1/admin/api-keys/cache/flush`
- Auth: none declared

Drop every cached API-key lookup on the worker that handles this request.

Note: in-process cache is per-uvicorn-worker. With multiple workers a single
call only flushes the worker that happens to receive it; other workers
refresh naturally after their TTL expires.

## Headers

- `X-API-KEY` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/clichefactory/apis/aio-server.md) · [All operations](https://skmtc.dev/clichefactory/apis/aio-server/llms.txt) · [OpenAPI document](https://skmtc.dev/clichefactory/apis/aio-server/revisions/9bd59f9bbb31?raw)
