curl --request POST \
--url https://api.cleartalk.ai/knowledge-base/learn \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"type": "web",
"name": "Documentation",
"urls": [
"https://docs.example.com/overview",
"https://docs.example.com/api"
],
"description": "Complete product documentation"
}
'curl --request POST \
--url https://api.cleartalk.ai/knowledge-base/learn \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"type": "web",
"name": "Documentation",
"urls": [
"https://docs.example.com/overview",
"https://docs.example.com/api"
],
"description": "Complete product documentation"
}
'API Key for authentication
Type of knowledge base
"web"
Name of the knowledge base
100"Documentation"
Array of URLs to scrape (maximum 100 URLs)
100[
"https://docs.example.com/overview",
"https://docs.example.com/api"
]Optional description of the knowledge base content
500"Complete product documentation"
Web scraping completed and knowledge base created successfully