Skip to content

Entity Cleanup Scan

GET
/api/writing/entities/cleanup/scan

Scan document_entities and lore_entries for pollution.

Returns the same report shape as scripts/cleanup_garbage_entities.py so the in-app cleanup panel can render the candidate list and let the user decide whether to apply.

project
Any of:
string

Limit scan to a single project id (defaults to all).

Successful Response

Response Entity Cleanup Scan Api Writing Entities Cleanup Scan Get
object
key
additional properties
any

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