Knowledge Base

Get a document's content

Returns the full content of a document node, including its body text (for raw and web documents), editorial and processing status, tags, and version provenance. Pass ?version=<n> to fetch a specific version instead of the latest.

get/org/kb/nodes/{id}/content

Request

  • Base URL
    https://apiv2.senso.ai/api/v1
  • Auth
    API key in header X-API-Key

Path parameters

idstring uuid required

The document node's kb_node_id.

Query parameters

versioninteger

Fetch a specific version number instead of the latest.

Response

The document's content.

idstring uuid required
org_idstring uuid required
type'raw' | 'web' | 'file' required

The content's source kind.

titlestring
summarystring
version_numinteger
editorial_statusstring

The editorial workflow state (e.g. draft, published).

processing_status'pending' | 'processing' | 'complete' | 'failed'

The ingestion status of the content.

error_codestring

Stable classification of an ingestion failure; present only when processing_status is failed.

textstring

The document body — raw text for raw documents, extracted markdown (or HTML) for web documents.

content_typestring required

The MIME type of the content (e.g. text/markdown, application/pdf).

created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.