Skip to main content
POST
/
shared-knowledge
/
sources
Error
A valid request URL is required to generate request examples
{
  "source": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "source_type": "text",
    "source_url": "<string>",
    "content_hash": "<string>",
    "status": "pending",
    "error_message": "<string>",
    "created_by": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "ingest_job": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "<string>",
    "chunk_count": 123
  },
  "document": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "chunk_count": 123
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
collection_id
string<uuid>
required
title
string
required
source_type
enum<string>
required

Content type. web_page reserved for Phase 2.

Available options:
text,
markdown
raw_content
string
required

The text or markdown content to ingest (max 100KB)

source_url
string

Optional source URL for attribution

Response

Source ingested

source
object
ingest_job
object
document
object