This API provides access to the Knowledge Base articles. It allows you to search for articles based on keywords and retrieve the full content and metadata.
fetch('/api/knowledgebase/search?q=keyword')
.then(response => response.json())
.then(data => {
// Process the search results
console.log(data);
})
.catch(error => {
console.error('Error:', error);
});
fetch('/api/knowledgebase/article/123')
.then(response => response.json())
.then(data => {
// Process the article data
console.log(data);
})
.catch(error => {
console.error('Error:', error);
});