For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact usJoin the Discord
ManualAPI GuideAPI Reference
  • Overview
    • API Reference
    • Client libraries
  • API Reference
      • POSTIngest Content
      • GETList Ingested Documents
      • POSTDelete Ingested Document
      • POSTRetrieve Full Document Content
      • POSTRetrieve Full Document Content in Chunks
LogoLogo
Contact usJoin the Discord
API ReferenceArtifacts

Retrieve Full Document Content

POST
https://host.com/v1/artifacts/content
POST
/v1/artifacts/content
$curl -X POST https://host.com/v1/artifacts/content \
> -H "Content-Type: application/json" \
> -d '{
> "context_filter": {}
>}'
1{
2 "data": [
3 {
4 "artifact_id": "annual_report_2023",
5 "content": "ANNUAL REPORT 2023\n\nExecutive Summary\n\nFiscal year 2023 marked a transformative period for our organization with record-breaking performance across all key metrics...\n\n[Full document content continues...]"
6 },
7 {
8 "artifact_id": "quarterly_summary_q4",
9 "content": "Q4 QUARTERLY SUMMARY\n\nQuarter Overview\n\nThe fourth quarter concluded our strongest year on record, with revenue growth of 34% year-over-year...\n\n[Full document content continues...]"
10 }
11 ]
12}
Retrieve the full content of filtered documents. This endpoint provides access to complete document content rather than semantic chunks. Use this when you need the entire context of documents rather than relevant excerpts. Key Features: - Full Content: Get complete documents rather than chunks - Multiple Formats: Return as markdown text or structured objects - Node Type Filtering: Include or exclude images, tables, and other node types - Node ID Filtering: Retrieve specific sections by their node IDs - Filtered Retrieval: Select specific documents using metadata filters - Bulk Retrieval: Get multiple documents in one request Format Options: - markdown (default): Returns flattened markdown text representation - object: Returns hierarchical tree structure with typed nodes Content Filtering: - Use include to retrieve only specific node types - Use exclude to omit unwanted content types - Use node_ids to retrieve specific sections or nodes by ID - Supports TextNode, ImageNode, TableNode, and other node types Subtree Filtering: - Specify node_ids to retrieve only certain sections/nodes - Set include_children=True (default) to get full subtrees - Set include_children=False to get only specified nodes - Set include_ancestors=True to include parent context Notes: - Node type filtering is applied to all retrieved documents - Object format preserves document structure and hierarchy - Markdown format provides a flattened, readable text representation - When node_ids is specified, returns filtered tree structure
Was this page helpful?
Previous

Retrieve Full Document Content in Chunks

Next
Built with

Retrieve the full content of filtered documents.

This endpoint provides access to complete document content rather than semantic chunks. Use this when you need the entire context of documents rather than relevant excerpts.

Key Features:

  • Full Content: Get complete documents rather than chunks
  • Multiple Formats: Return as markdown text or structured objects
  • Node Type Filtering: Include or exclude images, tables, and other node types
  • Node ID Filtering: Retrieve specific sections by their node IDs
  • Filtered Retrieval: Select specific documents using metadata filters
  • Bulk Retrieval: Get multiple documents in one request

Format Options:

  • markdown (default): Returns flattened markdown text representation
  • object: Returns hierarchical tree structure with typed nodes

Content Filtering:

  • Use include to retrieve only specific node types
  • Use exclude to omit unwanted content types
  • Use node_ids to retrieve specific sections or nodes by ID
  • Supports TextNode, ImageNode, TableNode, and other node types

Subtree Filtering:

  • Specify node_ids to retrieve only certain sections/nodes
  • Set include_children=True (default) to get full subtrees
  • Set include_children=False to get only specified nodes
  • Set include_ancestors=True to include parent context

Notes:

  • Node type filtering is applied to all retrieved documents
  • Object format preserves document structure and hierarchy
  • Markdown format provides a flattened, readable text representation
  • When node_ids is specified, returns filtered tree structure

Request

This endpoint expects an object.
context_filterobjectRequired
Filter to select documents to retrieve. Supports filtering by collection, artifacts, and metadata.
formatenumOptional
Format for returned content. 'object' returns structured data, 'markdown' returns content formatted as markdown text.
Allowed values:
filterobjectOptional
Content filtering options to include or exclude specific node types. Use this to control the types of content returned in the response.
max_tokensintegerOptional>=1
Maximum number of tokens to return in the content. If not set, returns full content of the documents.

Response

This endpoint returns an object.
datalist of objects
List of documents with their full content

Errors

401
Unauthorized
422
Unprocessable Entity