Knowledge

Upload Content

Upload content to the knowledge base. Supports file uploads, text content, or URLs. Content is processed asynchronously in the background. Supports custom readers and chunking strategies.

post/knowledge/content

Request

Query parameters

db_idstring nullable

Database ID to use for content storage

knowledge_idstring nullable

Knowledge base ID to upload to

Request body multipart/form-data

namestring nullable

Content name (auto-generated from file/URL if not provided)

descriptionstring nullable

Content description for context

urlstring nullable

URL to fetch content from (JSON array or single URL string)

metadatastring nullable

JSON metadata object for additional content properties

filestring binary nullable

File to upload for processing

text_contentstring nullable

Raw text content to process

reader_idstring nullable

ID of the reader to use for content processing

chunkerstring nullable

Chunking strategy to apply during processing

chunk_sizeinteger nullable

Chunk size to use for processing

chunk_overlapinteger nullable

Chunk overlap to use for processing

Response

Content upload accepted for processing

idstring required

Unique identifier for the content

namestring nullable

Name of the content

descriptionstring nullable

Description of the content

typestring nullable

MIME type of the content

sizestring nullable

Size of the content in bytes

linked_tostring nullable

ID of related content if linked

metadataobject nullable

Additional metadata as key-value pairs

access_countinteger nullable

Number of times content has been accessed

status'processing' | 'completed' | 'failed'

Enumeration of possible content processing statuses.

status_messagestring nullable

Status message or error details

created_atstring date-time nullable

Timestamp when content was created

updated_atstring date-time nullable

Timestamp when content was last updated

Changes

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