Docs
Get API key
documents

Retrieve a document

A document created in Klang, by a user or by the AI, rendered as markdown. Documents attached to a conversation also appear among its sources; this endpoint serves the ones found on their own, for example through search.

GET /api/v1/documents/{id}

Path parameters

idREQUIRED
string

Response fields

id
string
title
string · nullable
status
string · nullable
created_at
string · date-time
updated_at
string · date-time
folder_id
string · nullable
Immediate folder containing the document, or null at the workspace root.
conversation_ids
array of string
Conversations that carry this document as a source.
content
string · nullable
The document rendered as markdown; null when it has no readable content.