Import content from external sources into the Knowledge Base. These endpoints process content asynchronously.
Ta treść nie jest jeszcze dostępna w Twoim języku.
Import content from external sources into the Knowledge Base. These endpoints process content asynchronously.
Scrape Website
Section titled “Scrape Website”Scrape a single webpage or an entire website and import the content.
Scope: write_allPOST https://app.quickchat.ai/v1/api/knowledge_base/import_external/website
Request Body
| Parameter | Description |
|---|---|
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 |
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"}'import requests
response = requests.post( url="https://app.quickchat.ai/v1/api/knowledge_base/import_external/website", headers={"Authorization": "Bearer <API_TOKEN>"}, json={"url": "https://example.com/docs", "mode": "individual"},)data = response.json()Response 202 Accepted
{ "status": "success", "url": "https://example.com/docs", "article": {}}Import YouTube Transcript
Section titled “Import YouTube Transcript”Import the transcript from a YouTube video.
Scope: write_allPOST https://app.quickchat.ai/v1/api/knowledge_base/import_external/youtube
Request Body
| Parameter | Description |
|---|---|
url string, required | YouTube video URL |
toast_process_uuid string, required | UUID v4 for tracking the import process |
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"}'import uuidimport requests
response = requests.post( url="https://app.quickchat.ai/v1/api/knowledge_base/import_external/youtube", headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "toast_process_uuid": str(uuid.uuid4()), },)Response 202 Accepted — The transcript is processed asynchronously.
Import Sitemap
Section titled “Import Sitemap”Import content from all links in an XML sitemap.
Scope: write_allPOST https://app.quickchat.ai/v1/api/knowledge_base/import_external/site-map
Request Body
| Parameter | Description |
|---|---|
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) |
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"}'import requests
response = requests.post( url="https://app.quickchat.ai/v1/api/knowledge_base/import_external/site-map", headers={"Authorization": "Bearer <API_TOKEN>"}, json={"site_map": "https://example.com/sitemap.xml"},)data = response.json()Response 202 Accepted
{ "status": "success", "links": ["https://example.com/page1", "https://example.com/page2"]}Scrape List of Links
Section titled “Scrape List of Links”Import content from a specific list of URLs.
Scope: write_allPOST https://app.quickchat.ai/v1/api/knowledge_base/import_external/scrape-list
Request Body
| Parameter | Description |
|---|---|
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) |
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"]}'import requests
response = requests.post( url="https://app.quickchat.ai/v1/api/knowledge_base/import_external/scrape-list", headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "links": ["https://example.com/page1", "https://example.com/page2"], "tags": ["imported"], },)data = response.json()Response 202 Accepted
{ "status": "success", "links": ["https://example.com/page1", "https://example.com/page2"]}Delete Links
Section titled “Delete Links”Remove previously imported URL-type articles from the Knowledge Base.
Scope: write_allDELETE https://app.quickchat.ai/v1/api/knowledge_base/import_external
Request Body
| Parameter | Description |
|---|---|
links array of strings, required | List of URLs to remove (min 1) |
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"]}'import requests
response = requests.delete( url="https://app.quickchat.ai/v1/api/knowledge_base/import_external", headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "links": ["https://example.com/page1"], },)Response 200 OK