Get Document
Workspace
Get Document
Fetch the current document content for a thread.
Returns null (HTTP 200 with JSON null) if no document has been
written yet, so the frontend can distinguish between “no document” and
“empty document”.
Args: user: Authenticated owner. thread_id: Target conversation. db: Database session.
Returns:
DocumentSchema if a document exists, None otherwise.
GET
Get Document
Authorizations
A personal access token (haico_pat_...), created under Profile → API keys. Send it as Authorization: Bearer <key>. The browser session JWT is also accepted but is an internal mechanism and is not part of the public contract.
Path Parameters
Minimum string length:
1