Skip to main content
POST
/
orgs
/
{org_id}
/
knowledge
/
contents
Create Content
curl --request POST \
  --url https://api.example.com/orgs/{org_id}/knowledge/contents \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": {
    "type": "TEXT",
    "text": "<string>"
  },
  "title": "<string>"
}
'
{
  "id": "<string>",
  "title": "<string>",
  "type": "TEXT",
  "content": {
    "type": "TEXT",
    "text": "<string>"
  },
  "size": 123,
  "chunks_processed": 123,
  "chunks_count": 123,
  "error": "<string>",
  "status": "PENDING",
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25",
  "parent_content_id": "<string>",
  "children": [
    {
      "id": "<string>",
      "status": "PENDING",
      "title": "<string>",
      "content": {
        "type": "TEXT",
        "text": "<string>"
      },
      "size": 123,
      "chunks_processed": 123,
      "chunks_count": 123,
      "error": "<string>",
      "created_at": "2023-12-25",
      "updated_at": "2023-12-25",
      "parent_content_id": "<string>"
    }
  ]
}

Path Parameters

org_id
string
required

The ID of the org

Body

The content information.

Schema for creating a vector

content
object
required

Content configuration schema for different vector input types

title
string
Required string length: 1 - 255

Response

200 - application/json

The created content.

Schema for vector content

id
string
required
title
string
required

Title of the vector

type
enum<string>
required

Type of the vector content

Available options:
TEXT,
FILE,
URL
content
object
required

Content configuration schema for different vector input types

size
number
required

Size of the vector in bytes

chunks_processed
number
required

Number of chunks processed for the vector

chunks_count
number
required

Number of chunks in the vector

error
string | null
required

Error message if vector processing failed

status
enum<string>
required

Status of vector processing

Available options:
PENDING,
PROCESSING,
PROCESSED,
FAILED
created_at
string<date> | null
required
updated_at
string<date> | null
required
parent_content_id
string

Parent content ID

children
object[]

Children (for URL crawl parents)