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
}
}API Reference
Ingest a source into a collection
Creates a source, runs ingestion (chunking + indexing), and returns the source with ingest job summary. V1 supports text and markdown only. web_page source type returns 422.
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json