Skip to content

Clear Lorekeeper Cache

POST
/api/agents/lorekeeper/cache/clear

Invalidate cached Lorekeeper results.

Pass document_id to clear only entries for that document (the same surface the entity sidebar hits after confirm/deny/ban/delete). Omit it to wipe the entire cache — useful when a user wants to force fresh analysis across the whole project without restarting the agent.

document_id
Any of:
string

Successful Response

LorekeeperCacheClearResponse

Response to a cache-clear request.

object
status
required
Status
string
Allowed value: cleared
scope
required
Scope
string
Allowed values: all document
documentId
Any of:
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object