Skip to main content
POST
/
knowledge
/
content
{
  "id": "content-123",
  "name": "example-document.pdf",
  "description": "Sample document for processing",
  "metadata": {
    "category": "documentation",
    "priority": "high"
  },
  "status": "processing"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

db_id
string | null

Database ID to use for content storage

Body

multipart/form-data
name
string | null

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

description
string | null

Content description for context

url
string | null

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

metadata
string | null

JSON metadata object for additional content properties

file
file | null

File to upload for processing

text_content
string | null

Raw text content to process

reader_id
string | null

ID of the reader to use for content processing

chunker
string | null

Chunking strategy to apply during processing

chunk_size
integer | null

Chunk size to use for processing

chunk_overlap
integer | null

Chunk overlap to use for processing

Response

Content upload accepted for processing

id
string
required

Unique identifier for the content

name
string | null

Name of the content

description
string | null

Description of the content

type
string | null

MIME type of the content

size
string | null

Size of the content in bytes

linked_to
string | null

ID of related content if linked

metadata
Metadata · object

Additional metadata as key-value pairs

access_count
integer | null

Number of times content has been accessed

Required range: x >= 0
status
enum<string> | null

Processing status of the content

Available options:
processing,
completed,
failed
status_message
string | null

Status message or error details

created_at
string<date-time> | null

Timestamp when content was created

updated_at
string<date-time> | null

Timestamp when content was last updated