Get Outline Tree
GET /api/writing/outline/tree
GET
/api/writing/outline/tree
Get the full outline tree for a project.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” project_id
required
Project Id
string
Responses
Section titled “ Responses ”Successful Response
OutlineTreeResponse
Full outline tree for a project.
object
tree
required
Tree
Array<object>
OutlineTreeNodeRecursive tree node for frontend rendering.
object
node
required
OutlineNode
Single outline node in the book hierarchy.
object
id
required
Id
string
projectId
required
Projectid
string
title
required
Title
string
nodeType
required
Nodetype
string
summary
required
Summary
string
notes
required
Notes
string
sortOrder
required
Sortorder
integer
status
required
Status
string
knowledgeState
Any of:
SceneKnowledgeState
Knowledge state for a scene, keyed by participant lore_entries.id.
Participants absent from the map are treated as having empty known / unknown sets — the map is only required to carry non-empty state.
object
participants
Participants
object
key
additional properties
ParticipantKnowledge
Per-participant fact set — what a character knows (and does not know) at the start of a scene.
M3 stores facts as free-text strings. M4 will upgrade them to
{id, text} references when the contradiction engine formalizes a
fact registry; the shape evolves forward-compatibly via data
migration, not a schema rewrite.
object
knownFacts
Knownfacts
Array<string>
unknownFacts
Unknownfacts
Array<string>
null
createdAt
required
Createdat
integer
modifiedAt
required
Modifiedat
integer
children
Array<object> recursive
totalNodes
required
Totalnodes
integer
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context