Knowledge Base

Create a raw-text document

Creates a document from raw text (or markdown) in the knowledge base and starts ingesting it. Omit kb_folder_node_id to create it under the root. Returns 202 while ingestion runs asynchronously — poll the node or GET /org/kb/sync-status for completion.

post/org/kb/raw

Request

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

Request body

textstring required

The document body (raw text or markdown).

titlestring
summarystring
kb_folder_node_idstring uuid nullable

The folder to create the document in. Omit or null for the root.

Response

The document was created and is being ingested.

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

The content's source kind.

titlestring
summarystring
latest_content_version_idstring uuid
version_numinteger
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.

content_typestring required

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

kb_node_idstring uuid

The node addressing this content in the KB tree. Absent for content with no node (e.g. content-engine drafts).

created_atstring date-time required
updated_atstring date-time required

Changes

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