Open Document From Disk
POST /api/writing/documents/open
POST
/api/writing/documents/open
Open a file from disk, create a working document, and return it.
Reads the file, converts to TipTap HTML, creates a normal document entry (SQLite + .docx copy + ChromaDB) with the original path stored as source_path so that save writes back to the original location.
Supports: .docx, .txt, .md, .html
Request Body required
Section titled “Request Body required ” Body_open_document_from_disk_api_writing_documents_open_post
object
file_path
required
File Path
string
Responses
Section titled “ Responses ”Successful Response
Response Open Document From Disk Api Writing Documents Open Post
object
key
additional properties
any
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