Get Document
GET /api/writing/documents/{document_id}
GET
/api/writing/documents/{document_id}
π Get a single document by ID.
Reads content from the .docx file on disk via DocxService, merges with SQLite metadata. Falls back to SQLite content for legacy documents that havenβt been migrated to .docx yet.
Path Parameters:
document_id: Unique document identifier
Returns:
- Document object with content loaded from .docx
Raises:
HTTPException 404: If document not found or in the TrashHTTPException 500: If retrieval fails
Parameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters β document_id
required
Document Id
Document ID
string
Document ID
Responses
Section titled β Responses βSuccessful Response
Response Get Document Api Writing Documents Document Id Get
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