v1

latestOpenAPI 3.0.3MIT OR Apache-2.02026-07-17203670.3 KB
documents

Get document details

Returns full details for a specific document including metadata and tree info.

get/v1/documents/{id}

Path parameters

idstring required
Example:doc_abc123

Document ID

Response

Document details

idstring
titlestring
root_node_idstring

Root node ID of the tree

total_nodesinteger
max_depthinteger
source_pathstring
mime_typestring
file_sizeinteger
created_atstring date-time
updated_atstring date-time

Example response

{
  "id": "doc_abc123",
  "title": "Machine Learning Handbook",
  "root_node_id": "node_root_abc",
  "total_nodes": 42,
  "max_depth": 4,
  "source_path": "/uploads/ml-handbook.pdf",
  "mime_type": "application/pdf",
  "file_size": 2048576,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:35:00Z"
}