Zum Inhalt springen

Import content from external sources into the Knowledge Base. These endpoints process content asynchronously.

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Import content from external sources into the Knowledge Base. These endpoints process content asynchronously.

Scrape a single webpage or an entire website and import the content.

Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/website

Request Body

ParameterDescription
url
string, required
URL to scrape
mode
string
"individual" (default), "site_wide", or "individual_with_summary"
phrases
array of strings
Key phrases to extract
html_selector
string
CSS selector to target specific content
Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/website \
-H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com/docs",
"mode": "individual"
}'

Response 202 Accepted

{
"status": "success",
"url": "https://example.com/docs",
"article": {}
}

Import the transcript from a YouTube video.

Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/youtube

Request Body

ParameterDescription
url
string, required
YouTube video URL
toast_process_uuid
string, required
UUID v4 for tracking the import process
Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/youtube \
-H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"toast_process_uuid": "550e8400-e29b-41d4-a716-446655440000"
}'

Response 202 Accepted — The transcript is processed asynchronously.

Import content from all links in an XML sitemap.

Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/site-map

Request Body

ParameterDescription
site_map
string, required
URL to an XML sitemap
link_filter_regex
string
Regex to filter which links to import (default: ".*")
html_selector
string
CSS selector to target specific content
summarize
boolean
Whether to summarize imported content (default: false)
Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/site-map \
-H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"site_map": "https://example.com/sitemap.xml"
}'

Response 202 Accepted

{
"status": "success",
"links": ["https://example.com/page1", "https://example.com/page2"]
}

Import content from a specific list of URLs.

Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/scrape-list

Request Body

ParameterDescription
links
array of strings, required
List of URLs to scrape (non-empty)
tags
array of strings
Tags to apply to imported articles
html_selector
string
CSS selector to target specific content
summarize
boolean
Whether to summarize imported content (default: false)
Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/import_external/scrape-list \
-H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"links": ["https://example.com/page1", "https://example.com/page2"],
"tags": ["imported"]
}'

Response 202 Accepted

{
"status": "success",
"links": ["https://example.com/page1", "https://example.com/page2"]
}

Remove previously imported URL-type articles from the Knowledge Base.

Scope: write_all

DELETE https://app.quickchat.ai/v1/api/knowledge_base/import_external

Request Body

ParameterDescription
links
array of strings, required
List of URLs to remove (min 1)
Terminal window
curl -X DELETE https://app.quickchat.ai/v1/api/knowledge_base/import_external \
-H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"links": ["https://example.com/page1"]
}'

Response 200 OK