Skip to content

Open Document From Disk

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

Body_open_document_from_disk_api_writing_documents_open_post
object
file_path
required
File Path
string

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>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object